mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323618 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
151af2ada0
commit
b8291b6040
1 changed files with 19 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue