|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-22 19:40 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 10:00:01 2025 UTC |
if you have 3 subdirs in the current dir, named 0, 1 and 2, only 1 and 2 would appear, but not 0 $dh = dir("./"); $i=0; while($fname=readdir($dh)) { if ($fname != "." & $fname != "..") { $dirs[$i++] = $fname; }; } $dh->close();