note 79296 deleted from function.dirname by betz
| From: | betz@php.net | Date: | Tue, 04 Dec 2007 14:56:12 +0000 |
| Subject: | note 79296 deleted from function.dirname by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-132798@lists.php.net to get a copy of this message | ||
Note Submitter: zetoo at flash dot ro
----
my idea for playing with dirs :P
$dirs=explode('/',$path);
$root="/".$dirs[0];
$second_dir=$root."/".$dirs[2];
... and so on ... i think this is better for some cases.