note 50717 deleted from function.ord by danbrown
| From: | danbrown@php.net | Date: | Tue, 11 Oct 2011 16:15:00 +0000 |
| Subject: | note 50717 deleted from function.ord by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183806@lists.php.net to get a copy of this message | ||
Note Submitter: skissane at gmail dot com
----
Contrary to what jacobfri says below, ord does not use any particular character encoding. It simply
converts bytes from a string type to the corresponding integer. These bytes could be characters in
ASCII, or some other 7/8-bit code (e.g. ISO-8859-1), or bytes making up characters in some multibyte
code (e.g. UTF-8). It all depends on what character encoding your application is using.