cvs: php4 / TODO

[email protected] ("Andrei Zmievski") Tue, 30 May 2000 15:44:26 -0000
Newsgroups php.version4
Message-ID <cvsandrei959701466@cvsserver>
andrei		Tue May 30 08:44:26 2000 EDT

  Modified files:
    /php4	TODO 
  Log:
  Finally figured out what pathinfo() was all about.
  
  
Index: php4/TODO
diff -u php4/TODO:1.81 php4/TODO:1.82
--- php4/TODO:1.81	Mon May 29 08:55:15 2000
+++ php4/TODO	Tue May 30 08:44:26 2000
@@ -73,7 +73,19 @@
 ------------
     * 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.