Fixed opendir() example as per bug #13890

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61694 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2001-11-07 19:24:23 +00:00
parent 91ef472452
commit 719ca0c2e6

View file

@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
<!-- $Revision: 1.22 $ -->
<!-- $Revision: 1.23 $ -->
<reference id="ref.dir">
<title>Directory functions</title>
<titleabbrev>Directories</titleabbrev>
@ -176,7 +176,7 @@ $d->close();
&lt;?php
if ($dir = @opendir("/tmp")) {
while ($file = readdir($dir)) {
while (($file = readdir($dir)) !== false) {
echo "$file\n";
}
closedir($dir);