|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-20 16:28 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
function dir_list($dirname) { if($dirname[strlen($dirname)-1]!='/') $dirname.='/'; $handle=opendir($dirname); while ($file = readdir($handle)) { if($file=='.'||$file=='..') continue; $result_array[]=$dirname.$file; } closedir($handle); return $result_array; }; executed for a directory which has subdirectory that has a digit/special character as a first character of it's name, then that subdirectory won't be included in the $result_array