philip Sun Jun 8 10:29:25 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions fgetc.xml Log: Implement &return.falseproblem; and ¬e.bin-safe; entities, and added an example. This closes bug #21877 Index: phpdoc/en/reference/filesystem/functions/fgetc.xml diff -u phpdoc/en/reference/filesystem/functions/fgetc.xml:1.8 phpdoc/en/reference/filesystem/functions/fgetc.xml:1.9 --- phpdoc/en/reference/filesystem/functions/fgetc.xml:1.8 Tue Jan 28 13:56:30 2003 +++ phpdoc/en/reference/filesystem/functions/fgetc.xml Sun Jun 8 10:29:25 2003 @@ -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.fgetc"> <refnamediv> @@ -22,13 +22,30 @@ successfully opened by <function>fopen</function>, <function>popen</function>, or <function>fsockopen</function>. </para> + + &return.falseproblem; + <para> - <note> - <para> - This function is binary safe. - </para> - </note> + <example> + <title>A <function>fgetc</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$fp = fopen('somefile.txt', 'r'); +if (!$fp) { + echo 'Could not open file somefile.txt'; +} +while (false !== ($char = fgetc($fp))) { + echo "$char\n"; +} +?> +]]> + </programlisting> + </example> </para> + + ¬e.bin-safe; + <para> See also <function>fread</function>, <function>fopen</function>, <function>popen</function>, <function>fsockopen</function>, and
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php