pollita Thu Apr 3 20:44:12 2003 EDT
Added files:
/phpdoc/en/reference/stream/functions stream-get-line.xml
Modified files:
/phpdoc/en/reference/filesystem/functions fgets.xml
Log:
New function: stream_get_line()
Index: phpdoc/en/reference/filesystem/functions/fgets.xml
diff -u phpdoc/en/reference/filesystem/functions/fgets.xml:1.7
phpdoc/en/reference/filesystem/functions/fgets.xml:1.8
--- phpdoc/en/reference/filesystem/functions/fgets.xml:1.7 Wed Jan 15 15:22:11
2003
+++ phpdoc/en/reference/filesystem/functions/fgets.xml Thu Apr 3 20:44:12 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fgets">
<refnamediv>
@@ -71,8 +71,11 @@
</note>
¬e.line-endings;
<para>
- See also <function>fread</function>, <function>fopen</function>,
- <function>popen</function>, <function>fgetc</function>,
+ See also <function>fread</function>,
+ <function>fgetc</function>,
+ <function>stream_get_line</function>,
+ <function>fopen</function>,
+ <function>popen</function>,
<function>fsockopen</function>, and
<function>socket_set_timeout</function>.
</para>
Index: phpdoc/en/reference/stream/functions/stream-get-line.xml
+++ phpdoc/en/reference/stream/functions/stream-get-line.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.stream-get-line">
<refnamediv>
<refname>stream_get_line</refname>
<refpurpose>Gets line from stream resource up to a given delimiter</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>string</type><methodname>stream_get_line</methodname>
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
<methodparam><type>int</type><parameter>length</parameter></methodparam>
<methodparam><type>string</type><parameter>ending</parameter></methodparam>
</methodsynopsis>
<para>
Returns a string of up to <parameter>length</parameter> bytes read from the file
pointed to by <parameter>handle</parameter>. Reading ends when
<parameter>length</parameter> bytes have been read, when the string specified by
<parameter>ending</parameter> is found (which is <emphasis>not</emphasis>included
in the return value), or on EOF (whichever comes first).
</para>
<para>
If an error occurs, returns &false;.
</para>
<simpara>
This function is nearly identical to <function>fgets</function>
except in that it allows end of line delimiters other than the
standard \n, \r, and \r\n, and does <emphasis>not</emphasis>
return the delimiter itself.
</simpara>
<para>
See also <function>fread</function>,
<function>fgets</function>, and
<function>fgetc</function>,
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php