Hi,
I have added an example to the dir.closedir function. Diff is attached. -- Regards,
David Mytton Olate Ltd http://www.olate.co.uk
? dir.closedir.xml.diff Index: closedir.xml =================================================================== RCS file: /repository/phpdoc/en/reference/dir/functions/closedir.xml,v retrieving revision 1.4 diff -u -r1.4 closedir.xml --- closedir.xml 1 Nov 2004 16:08:20 -0000 1.4 +++ closedir.xml 4 Apr 2005 15:45:38 -0000 @@ -17,6 +17,26 @@ <parameter>dir_handle</parameter>. The stream must have previously been opened by <function>opendir</function>. </para> + <para> + <example> + <title><function>closedir</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$dir = "/etc/php5/"; + +// Open a known directory, read directory into variable and then close +if (is_dir($dir)) { + if ($dh = opendir($dir)) { + $directory = readdir($dh); + closedir($dh); + } +} +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry>