From 8ceb0c165bb803a969bee5e824b271920f05865f Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Sat, 19 May 2001 20:37:46 +0000 Subject: [PATCH] - ized - fixed types - TODO: add to resources.xml git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@47885 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/dir.xml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/functions/dir.xml b/functions/dir.xml index b242204d4b..a8ca29a944 100644 --- a/functions/dir.xml +++ b/functions/dir.xml @@ -11,7 +11,7 @@ Description - int chroot + bool chroot string directory @@ -40,7 +40,7 @@ Description - int chdir + bool chdir string directory @@ -100,7 +100,7 @@ $d->close(); void closedir - int dir_handle + resource dir_handle @@ -139,7 +139,7 @@ $d->close(); Description - int opendir + resource opendir string path @@ -186,7 +186,7 @@ if ($dir = @opendir("/tmp")) { string readdir - int dir_handle + resource dir_handle @@ -209,12 +209,14 @@ closedir($handle); - Note that readdir will return the . and - .. entries. If you don't want these, simply strip them out: + Note that readdir will return the . + and + .. entries. If you don't want these, simply strip + them out: - List all files in the current directory and strip out . and - .. + List all files in the current directory and strip out <literal>.</literal> + and <literal>..</literal> <?php @@ -242,7 +244,7 @@ closedir($handle); void rewinddir - int dir_handle + resource dir_handle