From: Andrei Zmievski Date: Tue, 30 May 2000 15:44:26 +0000 (+0000) Subject: Finally figured out what pathinfo() was all about. X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fcaa66bcd5277df5826f05ab99288e04ba8ac64;p=php Finally figured out what pathinfo() was all about. --- diff --git a/TODO b/TODO index 98c3492e93..084f63529d 100644 --- a/TODO +++ b/TODO @@ -73,7 +73,19 @@ ext/standard ------------ * add a version number to data serialized via serialize(). * array_add(), array_uniq(). (Andrei) - * implement pathinfo() (what the heck is it?) + * implement pathinfo() + $a = pathinfo("/some/file.bla"); + + => array("dirname" => "/some/", + "basename" => "file.bla", + "extension" => "bla"); + + + We could also make it return just one part as a sting if used + like this: + + $a = pathinfo("/some/file.bla", PATHINFO_BASENAME); + * possibly modify parsing of GPC data to automatically create arrays if variable name is seen more than once. * implement regex-cache for url-functions.