svn: /phpdoc/en/trunk/reference/filesystem/functions/ pathinfo.xml

From: Date: Fri, 01 Feb 2013 06:08:25 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ pathinfo.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-10989@lists.php.net to get a copy of this message
chx Fri, 01 Feb 2013 06:08:25 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=329390 Log: added a note about multiple extensions Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/pathinfo.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/pathinfo.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/pathinfo.xml 2013-02-01 05:37:04 UTC (rev 329389) +++ phpdoc/en/trunk/reference/filesystem/functions/pathinfo.xml 2013-02-01 06:08:25 UTC (rev 329390) @@ -5,7 +5,7 @@ <refname>pathinfo</refname> <refpurpose>Returns information about a file path</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -62,13 +62,21 @@ </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 <literal>extension</literal> element will be returned (see second example below). </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 @@ </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>

« previous php.doc.cvs (#10989) next »