February 2013
Intermediate to advanced
538 pages
20h 55m
English
basename
string basename(stringpath[, stringsuffix])
Returns the filename component from the full path
path. If the file’s name ends in
suffix, that string is removed from the
name. For example:
$path="/usr/local/httpd/index.html";echo(basename($path));// index.htmlecho(basename($path,'.html'));// index
Read now
Unlock full access