PHP funkce basename()
Dostupnost ve verzích: PHP 4.0
Returns filename component of path
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$path |
string |
není | A path. |
$suffix |
string |
null | If the filename ends in suffix this will also be cut off. |
Návratové hodnoty
string
the base name of the given path.