Press "Enter" to skip to content

php-hex2bin-function.

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

 

NameDescriptionRequired /Optional
StringHexadecimal representation of data.