개요
- PHP scandir()
<?php
$files = scandir('/');
print_r($files);
<?php
$files = scandir('/', SCANDIR_SORT_DESCENDING);
print_r($files);
같이 보기
- PHP opendir() - Open directory handle
- PHP readdir() - Read entry from directory handle
- PHP glob() - Find pathnames matching a pattern
- PHP is_dir() - Tells whether the filename is a directory
- PHP sort() - Sort an array in ascending order]]
- 함수 scandir()