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:
Justin Martin 2011-12-05 09:41:11 +00:00
parent bf9b5ebed0
commit 549b66fbf0

View file

@ -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