note 112397 added to function.chr
| From: | rowan dot collins at cwtdigital dot com | Date: | Tue, 11 Jun 2013 18:48:38 +0000 |
| Subject: | note 112397 added to function.chr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195133@lists.php.net to get a copy of this message | ||
The same explanation re character sets applies here as I have just submitted to the page for ord()
[http://php.net/ord]
That is to say, this function is not interpreting the input relative to any particular encoding; it
is simply setting a byte in memory to the integer value given (mod 256 to fit in one byte, as others
have pointed out) and returning that as a PHP string variable.
Thus ord(chr(200)) will always return 200, but that has no bearing on what character (or piece of
binary data) chr(200) might be later interpreted to represent.
----
Server IP: 94.76.225.145
Probable Submitter: 62.189.198.114
----
Manual Page -- http://php.net/manual/en/function.chr.php
Edit -- https://master.php.net/note/edit/112397
Del: integrated -- https://master.php.net/note/delete/112397/integrated
Del: useless -- https://master.php.net/note/delete/112397/useless
Del: bad code -- https://master.php.net/note/delete/112397/bad+code
Del: spam -- https://master.php.net/note/delete/112397/spam
Del: non-english -- https://master.php.net/note/delete/112397/non-english
Del: in docs -- https://master.php.net/note/delete/112397/in+docs
Del: other reasons-- https://master.php.net/note/delete/112397
Reject -- https://master.php.net/note/reject/112397
Search -- https://master.php.net/manage/user-notes.php