note 52788 added to function.strrev

From: Date: Thu, 12 May 2005 13:20:24 +0000
Subject: note 52788 added to function.strrev
Groups: php.notes 
Request: Send a blank email to php-notes+get-89331@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-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. ---- Manual Page -- http://www.php.net/manual/en/function.strrev.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52788 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52788&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52788&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52788&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52788&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52788&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52788&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89331) next »