From 49d54fd72a6df5bbb7748147545e139a8a1dfcad Mon Sep 17 00:00:00 2001 From: Karoly Negyesi Date: Fri, 1 Feb 2013 06:08:25 +0000 Subject: [PATCH] added a note about multiple extensions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329390 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/pathinfo.xml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/reference/filesystem/functions/pathinfo.xml b/reference/filesystem/functions/pathinfo.xml index 503643d29a..63fdf1b0a7 100644 --- a/reference/filesystem/functions/pathinfo.xml +++ b/reference/filesystem/functions/pathinfo.xml @@ -5,7 +5,7 @@ pathinfo Returns information about a file path - + &reftitle.description; @@ -60,6 +60,14 @@ dirname, basename, extension (if any), and filename. + + + If the path has more than one an extension, + PATHINFO_EXTENSION returns only the last one and + PATHINFO_FILENAME only strips the last one. + (see first example below). + + If the path does not have an extension, no @@ -68,7 +76,7 @@ - If options is present, returns a + If options is present, returns a string containing the requested element. @@ -163,13 +171,13 @@ NULL - pathinfo is locale aware, so for it to parse a path - containing multibyte characters correctly, the matching locale must be set using + pathinfo is locale aware, so for it to parse a path + containing multibyte characters correctly, the matching locale must be set using the setlocale function. - + &reftitle.seealso;