I\'m familiar with php\'s function bin2hex() for converting binary data to its hexadecimal representation.
bin2hex()
However, what is the complement function to c
If you look at PHP's bin2hex page, there's suggested solutions including this one:
$foo = pack("H*" , $foo); echo $foo;
There's also various implementations of hex2bin that you can choose from.