File base name : File : File Directory PHP Source Code


PHP Source Code » File Directory » File »

 

File base name



<?php
   $path = "./test.txt";
   $filename = basename($path)
   $filename2 = basename($path, ".txt")
   
   echo $filename;
   
   echo "<BR>";
   
   echo $filename2;
?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» File