note 11966 deleted from function.bin2hex by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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".