note 60124 deleted from function.clearstatcache by nlopess

From: Date: Tue, 27 Dec 2005 14:44:39 +0000
Subject: note 60124 deleted from function.clearstatcache by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100792@lists.php.net to get a copy of this message
Note Submitter: ---- if ($handle = opendir('/path/to/files')) { echo "Directory handle: $handle\n"; echo "Files:\n"; /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { echo "$file\n"; } /* This is the WRONG way to loop over the directory. */ while ($file = readdir($handle)) { echo "$file\n"; } closedir($handle); }

« previous php.notes (#100792) next »