note 116599 added to function.pathinfo
| From: | cmartinezme at hotmail dot com | Date: | Tue, 27 Jan 2015 12:46:19 +0000 |
| Subject: | note 116599 added to function.pathinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201537@lists.php.net to get a copy of this message | ||
Checked with version 5.5.12:
It works fine with filenames with utf-8 characters, pathinfo will strip them away:
print_r(pathinfo("/mnt/files/é£å
æ¨åå
è«.mp3"));
.. will display:
Array
(
[dirname] => /mnt/files
[basename] => é£å
æ¨åå
è«.mp3
[extension] => mp3
[filename] => é£å
æ¨åå
è«
)
----
Server IP: 72.52.91.14
Probable Submitter: 80.36.225.22
----
Manual Page -- http://php.net/manual/en/function.pathinfo.php
Edit -- https://master.php.net/note/edit/116599
Del: integrated -- https://master.php.net/note/delete/116599/integrated
Del: useless -- https://master.php.net/note/delete/116599/useless
Del: bad code -- https://master.php.net/note/delete/116599/bad+code
Del: spam -- https://master.php.net/note/delete/116599/spam
Del: non-english -- https://master.php.net/note/delete/116599/non-english
Del: in docs -- https://master.php.net/note/delete/116599/in+docs
Del: other reasons-- https://master.php.net/note/delete/116599
Reject -- https://master.php.net/note/reject/116599
Search -- https://master.php.net/manage/user-notes.php