From 741522f9ce9d1af372ab13cc3ae561853693eba7 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Sun, 9 Jun 2002 21:50:25 +0000 Subject: [PATCH] - 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 --- reference/filesystem/functions/fscanf.xml | 9 ++++++++- reference/strings/functions/sscanf.xml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/reference/filesystem/functions/fscanf.xml b/reference/filesystem/functions/fscanf.xml index 6af7f36e9d..b0a42ac742 100644 --- a/reference/filesystem/functions/fscanf.xml +++ b/reference/filesystem/functions/fscanf.xml @@ -1,5 +1,5 @@ - + @@ -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. + + + Any whitespace in the format string matches any whitespace in the input + stream. This means that even a tab \n in the format + string can match a single space character in the input stream. + + <function>fscanf</function> Example diff --git a/reference/strings/functions/sscanf.xml b/reference/strings/functions/sscanf.xml index f91dad8865..1fbeeaa4b0 100644 --- a/reference/strings/functions/sscanf.xml +++ b/reference/strings/functions/sscanf.xml @@ -1,5 +1,5 @@ - + @@ -23,6 +23,13 @@ according to the specified format. If only two parameters were passed to this function, the values parsed will be returned as an array. + + + 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. + + <function>sscanf</function> Example