fixed description and example text.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349302 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yoshinari Takaoka 2020-03-04 10:51:01 +00:00
parent ad0da591b1
commit c2bebb37ef

View file

@ -3,7 +3,7 @@
<refentry xml:id="ziparchive.replacefile" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ZipArchive::replaceFile</refname>
<refpurpose>Replaces a file to a ZIP archive from the given path</refpurpose>
<refpurpose>Replace file in ZIP archive with a given path</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
@ -16,7 +16,7 @@
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Replace a file to a ZIP archive from a given path.
Replace file in ZIP archive with a given path.
</para>
&zip.filename.separator;
</refsect1>
@ -84,12 +84,11 @@
&reftitle.examples;
<para>
This example opens a ZIP file archive
<filename>test.zip</filename> and add
the file <filename>/path/to/index.txt</filename>.
as <filename>newname.txt</filename>.
<filename>test.zip</filename> and replaces index 1 entry
with <filename>/path/to/index.txt</filename>.
</para>
<example>
<title>Open and add</title>
<title>Open and replace</title>
<programlisting role="php">
<![CDATA[
<?php