note 11966 deleted from function.bin2hex by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 20:31:07 +0000 |
| Subject: | note 11966 deleted from function.bin2hex by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134199@lists.php.net to get a copy of this message | ||
Note Submitter: gherson at snet dot net
----
As is, the
<?php
function hex2bin($hex_data){
return (DecBin(HexDec($hex_data)));
}
?>
suggested above will return actual ones and zeroes as opposed to a binary string interpreted as
ascii. E.g., "11000010110001001100011" gets returned instead of "abc".