note 109711 added to function.ord
| From: | wolf480 at interia dot pl | Date: | Mon, 13 Aug 2012 13:19:09 +0000 |
| Subject: | note 109711 added to function.ord | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-190050@lists.php.net to get a copy of this message | ||
Actually this function doesn't always return US-ASCII code of char. It depends what you have in
the string.
If you have utf8 string with national characters from HTML form, you have more bytes in string than
there was chars in form, and if you get first char from string and use ord, you actually get first
byte of utf8 representation of the text in form.
----
Server IP: 69.147.83.197
Probable Submitter: 178.183.216.205
----
Manual Page -- http://www.php.net/manual/en/function.ord.php
Edit -- https://master.php.net/note/edit/109711
Del: integrated -- https://master.php.net/note/delete/109711/integrated
Del: useless -- https://master.php.net/note/delete/109711/useless
Del: bad code -- https://master.php.net/note/delete/109711/bad+code
Del: spam -- https://master.php.net/note/delete/109711/spam
Del: non-english -- https://master.php.net/note/delete/109711/non-english
Del: in docs -- https://master.php.net/note/delete/109711/in+docs
Del: other reasons-- https://master.php.net/note/delete/109711
Reject -- https://master.php.net/note/reject/109711
Search -- https://master.php.net/manage/user-notes.php