nlopess Fri Jan 2 12:24:29 2004 EDT
Modified files: /phpdoc/en/reference/filesystem/functions is-dir.xml Log: example Index: phpdoc/en/reference/filesystem/functions/is-dir.xml diff -u phpdoc/en/reference/filesystem/functions/is-dir.xml:1.8 phpdoc/en/reference/filesystem/functions/is-dir.xml:1.9 --- phpdoc/en/reference/filesystem/functions/is-dir.xml:1.8 Sat Nov 29 11:39:55 2003 +++ phpdoc/en/reference/filesystem/functions/is-dir.xml Fri Jan 2 12:24:29 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-dir"> <refnamediv> @@ -17,9 +17,32 @@ <parameter>filename</parameter> is a relative filename, it will be checked relative to the current working directory. </para> - ¬e.clearstatcache; - + <para> + <example> + <title><function>is_dir</function> example</title> + <programlisting role="php"> +<![CDATA[ +<? +var_dump(is_dir('a_file.txt')) . "\n"; +var_dump(is_dir('bogus_dir/abc')) . "\n"; + +var_dump(is_dir('..')); //one dir up +?> +]]> + </programlisting> + <para> + The above example will output: + </para> + <screen> +<![CDATA[ +bool(false) +bool(false) +bool(true) +]]> + </screen> + </example> + </para> &tip.fopen-wrapper.stat; <para>