note 79018 added to function.basename

From: Date: Wed, 07 Nov 2007 07:41:05 +0000
Subject: note 79018 added to function.basename
Groups: php.notes 
Request: Send a blank email to php-notes+get-132071@lists.php.net to get a copy of this message
Attention: This function is NOT UTF-8 safe. If the filename starts with an utf8 character, this character will be cut off. Example: basename('Übergabe')='bergabe' Work around: Just insert a space at the beginning of the string: basename(' Übergabe')=' Übergabe' Use this call as workaround: ltrim(basename(' '+$s)) ---- Server IP: 217.160.72.57 Probable Submitter: 217.7.217.14 ---- Manual Page -- http://www.php.net/manual/en/function.basename.php Edit -- https://master.php.net/note/edit/79018 Del: integrated -- https://master.php.net/note/delete/79018/integrated Del: useless -- https://master.php.net/note/delete/79018/useless Del: bad code -- https://master.php.net/note/delete/79018/bad+code Del: spam -- https://master.php.net/note/delete/79018/spam Del: non-english -- https://master.php.net/note/delete/79018/non-english Del: in docs -- https://master.php.net/note/delete/79018/in+docs Del: other reasons-- https://master.php.net/note/delete/79018 Reject -- https://master.php.net/note/reject/79018 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132071) next »