basename.php : basename « File Directory « PHP






basename.php

 
<?php
   $path = "/home/www/data/users.txt";
   $filename = basename($path); 
   
   print $filename;
?>
  
  








Related examples in the same category

1.Getting path components