?? [klo?z]
vt.close; end
adv. ?? ??: close ?? ??: Closing ?? ??: Close ?? ??: Close ???: Closes ???: Closed
php closeir() ?? ???
??: ???? ??? ????.
??: ??closedir(dir_handle);
????:
Parameters | Description |
dir_handle | ?? ?????. opendir()? ?? ??? ?? ???? ?? ??? ?????. ? ????? ???? ??? opendir()? ?? ?? ??? ??? ?????. |
??: ???? ??? ????.
php closeir() ?? ?
<?php $dir = "/phpstudy/WWW/20180414/"; // 打開目錄,然后讀取其內(nèi)容 if ($dh = opendir($dir)){ while (($file = readdir($dh)) !== false) { echo "filename:" . $file . "<br>"; } closedir($dh); } ?>