March 2002
Intermediate to advanced
528 pages
21h 29m
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.html echo(basename($path, '.html')); // index