From 7fcaa66bcd5277df5826f05ab99288e04ba8ac64 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 30 May 2000 15:44:26 +0000 Subject: [PATCH] Finally figured out what pathinfo() was all about. --- TODO | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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. -- 2.50.1