|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-15 20:14 UTC] inge at upandforward dot com
Description: ------------ --- From manual page: http://www.php.net/function.basename#refsect1-function.basename-seealso --- Even if I have defined setlocale('nb_NO.utf8"); the basename functions strips off some national characters. Test script: --------------- echo basename('/directory/Øving.png"); Expected result: ---------------- Øving.png Actual result: -------------- ving.png PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 12:00:01 2025 UTC |
Here's a replacement, but without the $suffix parameter: function IV_basename($name) { $name = strrchr($name,DIRECTORY_SEPARATOR); if ($name) return substr($name,1); return false; }