note 43004 added to function.dirname
| From: | temposeb at free dot fr | Date: | Sun, 06 Jun 2004 18:33:19 +0000 |
| Subject: | note 43004 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70592@lists.php.net to get a copy of this message | ||
Doc : « Given a string containing a path to a file »
You _must_ specify a filename. Take care if you don't do that...
<?php
echo dirname('/folder/anotherone/') ;
?>
... will output "/folder" and not "/folder/anotherone"
----
Manual Page -- http://www.php.net/manual/en/function.dirname.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43004
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43004&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43004&report=yes
Search -- http://master.php.net/manage/user-notes.php