Re: [PHP4BETA] cvs: /php4 TODO
| From: | Andrei Zmievski | Date: | Sat, 19 Feb 2000 16:03:28 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4 TODO | ||
| References: | 1 2 3 4 5 6 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10492@lists.php.net to get a copy of this message | ||
On Sat, 19 Feb 2000, Thies C . Arntzen wrote:
> what about someting like pathinfo();
>
> $a = pathinfo("/some/file.bla");
>
> => array("dirname" => "/some/",
> "basename" => "file.bla",
> "extension" => "bla");
>
>
> i could come up with some more interesting fields.
>
> we could also make it return just one part as a sting if used
> like this:
>
> $a = pathinfo("/some/file.bla",PATHINFO_BASENAME);
>
> => "file.bla";
>
> comments?
I like this idea. I assume extension will be the last part of the string
after the ".", if any.
-Andrei
Linux is like living in a teepee.
No Windows, no Gates, Apache in house.
- Usenet signature