]> granicus.if.org Git - php/commitdiff
Finally figured out what pathinfo() was all about.
authorAndrei Zmievski <andrei@php.net>
Tue, 30 May 2000 15:44:26 +0000 (15:44 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 30 May 2000 15:44:26 +0000 (15:44 +0000)
TODO

diff --git a/TODO b/TODO
index 98c3492e937f83ebde3f59169627f8eabfc4cb0a..084f63529de095044511bf3bb6a419a3284f3549 100644 (file)
--- 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.