glob 현재 디렉토리에서 pattern에 일치하는 경로 이름을 배열로 반환
페이지 정보
작성자 LYJ 작성일14-05-02 11:35 조회18,454회 댓글0건관련링크
본문
glob 현재 디렉토리에서 pattern에 일치하는 경로 이름을 배열로 반환
array glob ( string $pattern [, int $flags = 0 ] )
<?php
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename);
echo "<br />";
}
?>
댓글목록
등록된 댓글이 없습니다.