note 106052 modified in function.ord by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Oct 2011 16:15:46 +0000 |
| Subject: | note 106052 modified in function.ord by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183667@lists.php.net to get a copy of this message | ||
I've found that variant with
unpack('N', mb_convert_encoding($c, 'UCS-4BE', 'UTF-8'));
is VERY-VERY slow.
Remember this when process strings longer than 1K.
--was--
I've found that variant with
unpack('N', mb_convert_encoding($c, 'UCS-4BE', 'UTF-8'));
is VERY-VERY slow.
It's up to 60 times slower than function in marlonx80's note.
Remember this when process strings longer than 1K.
http://php.net/manual/en/function.ord.php