- Document whitespace behaviour of the scanf functions, closes #12337.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@85202 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Markus Fischer 2002-06-09 21:50:25 +00:00
parent 6d6e6e0232
commit 741522f9ce
2 changed files with 16 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fscanf">
<refnamediv>
@ -24,6 +24,13 @@
Otherwise, if optional parameters are passed, the function will
return the number of assigned values. The optional parameters
must be passed by reference.
</para>
<para>
Any whitespace in the format string matches any whitespace in the input
stream. This means that even a tab <literal>\n</literal> in the format
string can match a single space character in the input stream.
</para>
<para>
<example>
<title><function>fscanf</function> Example</title>
<programlisting role="php">

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.33 -->
<refentry id="function.sscanf">
<refnamediv>
@ -23,6 +23,13 @@
according to the specified <parameter>format</parameter>. If only
two parameters were passed to this function, the values parsed
will be returned as an array.
</para>
<para>
Any whitespace in the format string matches any whitespace in the input
string. This means that even a tab \n in the format string can match a
single space character in the input string.
</para>
<para>
<example>
<title><function>sscanf</function> Example</title>
<programlisting role="php">