note 54598 added to function.pathinfo
| From: | sgermainaticexnetworksdotcom at osu1 dot php dot net | Date: | Fri, 08 Jul 2005 18:24:08 +0000 |
| Subject: | note 54598 added to function.pathinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91696@lists.php.net to get a copy of this message | ||
It is true that if you put a directory into pathinfo, usually the extension is empty. But, if the
directory name is /www/example.com/ for example, you will have the following output:
Array
(
[dirname] => /www
[basename] => example.com
[extension] => com
)
So, it is the same as a file.
----
Manual Page -- http://www.php.net/manual/en/function.pathinfo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54598
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54598&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54598&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54598&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54598&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54598&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54598&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54598&report=yes
Search -- http://master.php.net/manage/user-notes.php