check_filename_lib
Proto type
array filelist_lib (string path, [ string mode, [ string regex ] ])Description
Arguments
Example
See also
Last updated
array filelist_lib (string path, [ string mode, [ string regex ] ])Last updated
<?php
# /home/backup 하위의 디렉토리 리스트를 받을 경우
$a = filelist_lib ('/home/backup', 'd');
for( $i=0 ;$i<count ($a); $i++ ) {
echo $a[$i]."\n";
}
# /home/backup 에 있는 파일 중, tar.gz 파일들만 받을 경우
$a = filelist_lib ('/home/backup', 'f', 'tar\.gz$');
for( $i=0; $i<count ($a); $i++ ) {
echo $a[$i]."\n";
}
?>