note 52788 modified in function.strrev by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 11:30:52 +0000 |
| Subject: | note 52788 modified in function.strrev by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189594@lists.php.net to get a copy of this message | ||
I will make Screend at hf dot webex dot com's comment more clear and
understandable. strrev only works for singlebyte character-sets.
Multibytes charactersets are not compatibles with
strrev. US-ASCII and ISO-8859-* are compatible with strrev,
however BIG5, SJIS, UTF-8 aren't. There's no
mb_strrev function in PHP, so you can't strrev() a multibyte string. Try to convert it to
something else with iconv() if it can be represented in a singlebyte character set.
--was--
I will make Screend at hf dot webex dot com's comment more clear and understandable.
strrev only works for singlebyte character-sets. Multibytes charactersets are not compatibles with
strrev.
US-ASCII and ISO-8859-1 are compatible with strrev, however BIG5, SJIS, UTF-8 aren't.
Despite what you can think, ISO-8859-15 *is* multibyte (the euro symbol - - is coded on two
bytes).
There's no mb_strrev function in PHP, so you can't strrev() a multibyte string. Try to
convert it to something else with iconv() if it can be represented in a singlebyte character set.
http://php.net/manual/en/function.strrev.php