PHP Manuál | ||
---|---|---|
Predchádzajúci | Nasledujúci |
Returns an array of files and directories from the directory. If directory is not a directory, then boolean FALSE is returned, and an error of level E_WARNING is generated.
By default, the sorted order is alphabetical in ascending order. If the optional sorting_order is used (set to 1), then sort order is alphabetical in descending order.
Príklad 2. PHP 4 alternatives to scandir()
Outputs something like:
|
Tip: Môžete použiť URL ako názov súboru s touto funkciou ak boli fopen wrappery povolené. Pozri fopen() pre viac detailov ako určiť názov súboru a Dodatok L pre zoznam podporovaných URL protokolov.
See also opendir(), readdir(), glob(), is_dir(), and sort().
Predchádzajúci | Domov | Nasledujúci |
rewinddir | Hore | DOM Functions |