|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 19 14:00:02 2026 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();