basename

 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.

戻り値

Returns the base name of the given path.