derick          Fri Jun 14 17:49:38 2002 EDT

  Modified files:              
    /phpdoc-nl/reference/strings/functions      sscanf.xml 
  Log:
  - Add parameter
  
  
Index: phpdoc-nl/reference/strings/functions/sscanf.xml
diff -u phpdoc-nl/reference/strings/functions/sscanf.xml:1.2 
phpdoc-nl/reference/strings/functions/sscanf.xml:1.3
--- phpdoc-nl/reference/strings/functions/sscanf.xml:1.2        Sun May 26 12:52:40 
2002
+++ phpdoc-nl/reference/strings/functions/sscanf.xml    Fri Jun 14 17:49:37 2002
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 <!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
+<!-- $Revison: $ -->
   <refentry id="function.sscanf">
    <refnamediv>
     <refname>sscanf</refname>
@@ -20,16 +21,24 @@
      de gespecificeerde <parameter>format</parameter>. Als alleen twee parameters
      zouden worden meegegeven met deze functie, zal de geparste waarde worden
      teruggeven als een array.
+    </para>
+    <para>
+     Alle whitespace in de format string komt wordt gematched met whitespace
+     in de invoer string. Dit betekent dat &quot;tab&quot; + \n in de format
+     string een enkele spatie matched in de invoer string.
+    </para>
+    <para>
      <example>
       <title><function>sscanf</function> voorbeeld</title>
       <programlisting role="php">
 <![CDATA[
-// ophalen van serial number
-$serial = sscanf("SN/2350001","SN/%d");
-// en de datum van productie
-$mandate = &quot;January 01 2000&quot;;
-list($month, $day, $year) = sscanf($mandate,"%s %d %d";);
-echo "Item $serial was gefabriceerd op: $year-".substr($month,0,3)."-$day\n";
+<?php
+    // ophalen van serienummer
+    $serial = sscanf("SN/2350001", "SN/%d");
+    // en de datum van productie
+    $mandate = "January 01 2000";
+    list($month, $day, $year) = sscanf($mandate, "%s %d %d");
+    echo "Item $serial was gefabriceerd op: $year-". substr($month, 0, 3). "-$day\n";
 ]]>
       </programlisting>
      </example>


Reply via email to