PHP » GoLang |
login |
register |
about
|
basename(PHP 4, PHP 5, PHP 7) basename — Returns trailing name component of path Description
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.
Caution
basename() is locale aware, so for it to see the correct basename with multibyte character paths, the matching locale must be set using the setlocale() function. Parameters
Return Values
Returns the base name of the given Examples
Example #1 basename() example
<?php The above example will output: 1) sudoers 2) sudoers.d 3) passwd 4) etc 5) . 6) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|