Definition
The hex2bin() function converts a string of hexadecimal values to ASCII characters.
Syntax
hex2bin(string)
Parameters
Parameter | Description |
---|---|
string |
Required. The hexadecimal value to be converted. |
Example
<?php
echo hex2bin("48656c6c6f20576f726c6421");