(No version information available, might only be in SVN)
hex2bin — Convert hex to binary
Converts the hex representation of data to binary
Hexadecimal representation of data.
Returns the binary representation of the given data.
Example #1 hex2bin() example
<?php
$hex = hex2bin("6578616d706c65206865782064617461");
var_dump($hex);
?>
The above example will output something similar to:
string(16) "example hex data"