vrana           Wed Nov 16 07:52:50 2005 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      sscanf.xml 
  Log:
  Fix example
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/sscanf.xml?r1=1.13&r2=1.14&ty=u
Index: phpdoc/en/reference/strings/functions/sscanf.xml
diff -u phpdoc/en/reference/strings/functions/sscanf.xml:1.13 
phpdoc/en/reference/strings/functions/sscanf.xml:1.14
--- phpdoc/en/reference/strings/functions/sscanf.xml:1.13       Sun Jan 30 
17:41:49 2005
+++ phpdoc/en/reference/strings/functions/sscanf.xml    Wed Nov 16 07:52:34 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.33 -->
   <refentry id="function.sscanf">
    <refnamediv>
@@ -39,7 +39,7 @@
 <![CDATA[
 <?php
 // getting the serial number
-$serial = sscanf("SN/2350001", "SN/%d");
+list($serial) = sscanf("SN/2350001", "SN/%d");
 // and the date of manufacturing
 $mandate = "January 01 2000";
 list($month, $day, $year) = sscanf($mandate, "%s %d %d");

Reply via email to