<?php
$d = dir('css');
echo "Handle: " . $d->handle . "<br>";
echo "Path: " . $d->path . "<br>";
while (($file = $d->read()) !== false){
echo "filename: " . $file . "<br>";
}
$d->close();
?>
결과 :php : 무엇을합니다. 그리고 .. DIR-의 출력에 의미> 읽기()
가Handle: Resource id #4
Path: css
filename: .
filename: ..
filename: css
filename: img
filename: index.html
filename: js
filename: lightbox
질문 : 결과에
, .
및 ..
는 무엇입니까?
복제본 [참고 -이 기호는 PHP에서 무엇을 의미합니까?] (http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php) – Kermit
나는 이 문서에 대한 답이 있다고 생각하지 마십시오 –