hex2bin()
function is supported after php5.4. It is not available in php5.3. How can I do hex2bin in php3 ?
echo hex2bin("48656c6c6f20576f726c6421");
hex2bin()
function is supported after php5.4. It is not available in php5.3. How can I do hex2bin in php3 ?
echo hex2bin("48656c6c6f20576f726c6421");
Just use
$foo = pack("H*" ,"48656c6c6f20576f726c6421");
echo $foo