- Fixed parameter order in the example

- Rename the arguments to to_path and from_path to be cristal clear


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@281566 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2009-06-02 20:50:49 +00:00
parent 4cb981d827
commit 1edfcca722

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.13 $ -->
<!-- $Revision: 1.14 $ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.link">
<refnamediv>
<refname>link</refname>
@ -10,8 +10,8 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>link</methodname>
<methodparam><type>string</type><parameter>target</parameter></methodparam>
<methodparam><type>string</type><parameter>link</parameter></methodparam>
<methodparam><type>string</type><parameter>to_path</parameter></methodparam>
<methodparam><type>string</type><parameter>from_path</parameter></methodparam>
</methodsynopsis>
<para>
<function>link</function> creates a hard link.
@ -23,7 +23,7 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>target</parameter></term>
<term><parameter>to_path</parameter></term>
<listitem>
<para>
Target of the link.
@ -31,7 +31,7 @@
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>link</parameter></term>
<term><parameter>from_path</parameter></term>
<listitem>
<para>
The link name.
@ -82,10 +82,10 @@
<![CDATA[
<?php
$source = 'source.ext'; // This is the file that already exists
$dest = 'newfile.ext'; // This the filename that you want to link it to
$source = 'source.ext'; // This is the file that already exists
link($source, $dest);
link($dest, $source);
?>
]]>
</programlisting>