svn: /phpdoc/en/trunk/reference/apc/apciterator/ construct.xml

From: Date: Tue, 28 Feb 2012 10:43:37 +0000
Subject: svn: /phpdoc/en/trunk/reference/apc/apciterator/ construct.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9693@lists.php.net to get a copy of this message
vrana Tue, 28 Feb 2012 10:43:37 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=323618 Log: Example Changed paths: U phpdoc/en/trunk/reference/apc/apciterator/construct.xml Modified: phpdoc/en/trunk/reference/apc/apciterator/construct.xml =================================================================== --- phpdoc/en/trunk/reference/apc/apciterator/construct.xml 2012-02-28 10:03:50 UTC (rev 323617) +++ phpdoc/en/trunk/reference/apc/apciterator/construct.xml 2012-02-28 10:43:37 UTC (rev 323618) @@ -83,6 +83,25 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>A <function>APCIterator::__construct</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +foreach (new APCIterator('/^counter\./') as $counter) { + echo "$counter[key]: $counter[value]\n"; + apc_dec($counter['key'], $counter['value']); +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <simplelist>

« previous php.doc.cvs (#9693) next »