List Info

Thread: note 79018 added to function.basename




note 79018 added to function.basename
user name
2007-11-07 01:41:05
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 -- ht
tp://www.php.net/manual/en/function.basename.php
Edit        -- https://master
.php.net/note/edit/79018
Del: integrated  -- h
ttps://master.php.net/note/delete/79018/integrated
Del: useless     -- http
s://master.php.net/note/delete/79018/useless
Del: bad code    -- htt
ps://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     -- http
s://master.php.net/note/delete/79018/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/79018
Reject      -- https://mast
er.php.net/note/reject/79018
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )