note 42942 added to function.ord
| From: | jacobfri at skydebanen dot net | Date: | Fri, 04 Jun 2004 09:10:53 +0000 |
| Subject: | note 42942 added to function.ord | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70781@lists.php.net to get a copy of this message | ||
Just to get things straight about which character table ord() and chr() uses.
The range 128-255 is _not_ equivalent with the widely used extended ASCII-table, like the one
described in www.asciitable.com. The actual equivalent is the 128-255 range of Unicode.
That's a good thing, because then ord() and chr() is compatible with javascript, and any other
language that uses Unicode.
But it's rather nice to know it, and the description of ord() is kind of misleading, when it
only refers to www.asciitable.com.
----
Manual Page -- http://www.php.net/manual/en/function.ord.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42942
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42942&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42942&report=yes
Search -- http://master.php.net/manage/user-notes.php