PHP hex2bin Function
The PHP hex2bin function convert hexadecimally to binary string.
Example for PHP hex2bin Function
<?php
echo hex2bin(“48656c6c6f20576f726c6421”);
?>
SYNTAX
string hex2bin ( string )
PARAMETER
Name | Description | Required /Optional |
String | Hexadecimal representation of data. |