mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added example. Closes bug #54079.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320405 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
bf9b5ebed0
commit
549b66fbf0
1 changed files with 20 additions and 0 deletions
|
@ -46,6 +46,26 @@
|
|||
Returns the name on success&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>getnameindex</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if ($zip->open('test.zip') == TRUE) {
|
||||
for ($i = 0; $i < $zip->numFiles; $i++;) {
|
||||
$filename = $zip->getNameIndex($i);
|
||||
// ...
|
||||
}
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
|
Loading…
Reference in a new issue