| 
 | basenameReturns trailing name component of path Description
   string basename
    ( string  $path[, string$suffix] )Given a string containing the path to a file or directory, this function will return the trailing name component. 
 Caution
    basename is locale aware, so for it to see the correct basename with multibyte character paths, the matching locale must be set using the setlocale function. Parameters
 
 Return Values
   Returns the base name of the given  Examples
 Example #1 basename example 
<?phpThe above example will output: 1) sudoers 2) sudoers.d 3) passwd 4) etc 5) . 6) See Also
 
 |