note 80748 added to function.pathinfo
| From: | tom at foo-bar dot co dot uk | Date: | Wed, 30 Jan 2008 14:48:10 +0000 |
| Subject: | note 80748 added to function.pathinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135604@lists.php.net to get a copy of this message | ||
Note that this function seems to just perform string operations, and will work even on a
non-existent path, e.g.
<?php
print_r(pathinfo('/no/where/file.txt'));
?>
which will output:
Array
(
[dirname] => /no/where
[basename] => file.txt
[extension] => txt
[filename] => file
)
----
Server IP: 87.124.64.96
Probable Submitter: 78.154.110.235
----
Manual Page -- http://www.php.net/manual/en/function.pathinfo.php
Edit -- https://master.php.net/note/edit/80748
Del: integrated -- https://master.php.net/note/delete/80748/integrated
Del: useless -- https://master.php.net/note/delete/80748/useless
Del: bad code -- https://master.php.net/note/delete/80748/bad+code
Del: spam -- https://master.php.net/note/delete/80748/spam
Del: non-english -- https://master.php.net/note/delete/80748/non-english
Del: in docs -- https://master.php.net/note/delete/80748/in+docs
Del: other reasons-- https://master.php.net/note/delete/80748
Reject -- https://master.php.net/note/reject/80748
Search -- https://master.php.net/manage/user-notes.php