basename

Example

 string basename ( string $path [, string $suffix ] ) 

Description

Given a string containing the path to a file or directory, this function will return the trailing name component.

Return Values

Returns the base name of the given path.