note 128173 added to function.bin2hex
| From: | cb at dialogs dot com | Date: | Mon, 30 Jan 2023 18:12:17 +0000 |
| Subject: | note 128173 added to function.bin2hex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220129@lists.php.net to get a copy of this message | ||
Be aware that, although it says "binary" data, it really assumes a string. So bin2hex(0)
returns the same as bin2hex("0") which is "30". Even casting it to an (int)
still returns "30"
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 99.109.15.25)
----
Manual Page -- https://php.net/manual/en/function.bin2hex.php
Edit -- https://main.php.net/note/edit/128173
Del: integrated -- https://main.php.net/note/delete/128173/integrated
Del: useless -- https://main.php.net/note/delete/128173/useless
Del: bad code -- https://main.php.net/note/delete/128173/bad+code
Del: spam -- https://main.php.net/note/delete/128173/spam
Del: non-english -- https://main.php.net/note/delete/128173/non-english
Del: in docs -- https://main.php.net/note/delete/128173/in+docs
Del: other reasons-- https://main.php.net/note/delete/128173
Reject -- https://main.php.net/note/reject/128173
Search -- https://main.php.net/manage/user-notes.php