PHP funkce is_dir()
Dostupnost ve verzích: PHP 4.0
Tells whether the filename is a directory
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$filename |
string |
není | Path to the file. If filename is a relative filename, it will be checked relative to the current working directory. If filename is a symbolic or hard link then the link will be resolved and checked. |
Návratové hodnoty
bool
true if the filename exists and is a directory, false otherwise.