dmytton Tue Apr 5 11:46:30 2005 EDT
Modified files: /phpdoc/en/reference/filesystem/functions is-file.xml Log: Added example http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/is-file.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/reference/filesystem/functions/is-file.xml diff -u phpdoc/en/reference/filesystem/functions/is-file.xml:1.6 phpdoc/en/reference/filesystem/functions/is-file.xml:1.7 --- phpdoc/en/reference/filesystem/functions/is-file.xml:1.6 Sat Nov 29 11:39:55 2003 +++ phpdoc/en/reference/filesystem/functions/is-file.xml Tue Apr 5 11:46:30 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-file"> <refnamediv> @@ -15,6 +15,26 @@ <para> Returns &true; if the filename exists and is a regular file. </para> + <para> + <example> + <title><function>is_file</function> example</title> + <programlisting role="php"> +<![CDATA[ +<? +var_dump(is_file('a_file.txt')) . "\n"; +var_dump(is_file('/usr/bin/')) . "\n"; +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +bool(true) +bool(false) +]]> + </screen> + </example> + </para> ¬e.clearstatcache;