mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
added a note about multiple extensions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329390 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
87726efe34
commit
49d54fd72a
1 changed files with 13 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
|||
<refname>pathinfo</refname>
|
||||
<refpurpose>Returns information about a file path</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -60,6 +60,14 @@
|
|||
<literal>dirname</literal>, <literal>basename</literal>,
|
||||
<literal>extension</literal> (if any), and <literal>filename</literal>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
If the <parameter>path</parameter> has more than one an extension,
|
||||
<constant>PATHINFO_EXTENSION</constant> returns only the last one and
|
||||
<constant>PATHINFO_FILENAME</constant> only strips the last one.
|
||||
(see first example below).
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
If the <parameter>path</parameter> does not have an extension, no
|
||||
|
@ -68,7 +76,7 @@
|
|||
</para>
|
||||
</note>
|
||||
<para>
|
||||
If <parameter>options</parameter> is present, returns a
|
||||
If <parameter>options</parameter> is present, returns a
|
||||
<type>string</type> containing the requested element.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -163,13 +171,13 @@ NULL
|
|||
</note>
|
||||
<note>
|
||||
<para>
|
||||
<function>pathinfo</function> is locale aware, so for it to parse a path
|
||||
containing multibyte characters correctly, the matching locale must be set using
|
||||
<function>pathinfo</function> is locale aware, so for it to parse a path
|
||||
containing multibyte characters correctly, the matching locale must be set using
|
||||
the <function>setlocale</function> function.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue