I have a string of hexadecimal numbers like
$a = '9b23b4b322b0da70';
and I want to convert it to a binary string. Is there a simple way to do this using pack() or vec()? currently I am thinking of splitting the string every two characters, and doing chr() on each of them, but I think this is probably not the best way, is it?
In reply to packing hex by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |