note 77038 added to function.bin2hex
| From: | tehjosh at gamingg dot net | Date: | Sun, 12 Aug 2007 06:35:04 +0000 |
| Subject: | note 77038 added to function.bin2hex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129420@lists.php.net to get a copy of this message | ||
This function is for converting binary data into a hexadecimal string representation. This function
is not for converting strings representing binary digits into hexadecimal. If you want that
functionality, you can simply do this:
<?php
$binary = "11111001";
$hex = dechex(bindec($binary));
echo $hex;
?>
This would output "f9". Just remember that there is a very big difference between binary
data and a string representation of binary.
----
Server IP: 69.147.83.197
Probable Submitter: 75.0.36.100
----
Manual Page -- http://www.php.net/manual/en/function.bin2hex.php
Edit -- https://master.php.net/note/edit/77038
Del: integrated -- https://master.php.net/note/delete/77038/integrated
Del: useless -- https://master.php.net/note/delete/77038/useless
Del: bad code -- https://master.php.net/note/delete/77038/bad+code
Del: spam -- https://master.php.net/note/delete/77038/spam
Del: non-english -- https://master.php.net/note/delete/77038/non-english
Del: in docs -- https://master.php.net/note/delete/77038/in+docs
Del: other reasons-- https://master.php.net/note/delete/77038
Reject -- https://master.php.net/note/reject/77038
Search -- https://master.php.net/manage/user-notes.php