note 79018 deleted from function.basename by danbrown

From: Date: Wed, 31 Dec 2008 18:52:30 +0000
Subject: note 79018 deleted from function.basename by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148721@lists.php.net to get a copy of this message
Note Submitter: roth at egotec dot com ---- 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))

« previous php.notes (#148721) next »