PHP funkce pathinfo()
📅 06. 07. 2020Dostupnost ve verzích: PHP 4.0.3
Returns information about a file path
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$path | string | The path being checked. | |
$options | int | null | You can specify which elements are returned with optional parameter options. It composes from PATHINFO_DIRNAME, PATHINFO_BASENAME, PATHINFO_EXTENSION and PATHINFO_FILENAME. It defaults to return all elements. |
Návratové hodnoty
mixed
The following associative array elements are returned: dirname, basename, extension (if any), and filename.
If options is used, this function will return a string if not all elements are requested.
Další zdroje
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce