string basename(string x)
Returns the last segment of a path.
dirname, explode_path
Extracted from Pike v7.3 release 11 at 2001-11-03.