Fix example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@200598 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-11-16 12:52:34 +00:00
parent f61ed9a7f3
commit 52d438bd50

View file

@ -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");