Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

hex2bin

Description

The hex2bin of String for PHP decodes a hexadecimally encoded binary string.

Syntax

hex2bin(string $string): string|false

Parameters

data

Hexadecimal representation of data.

Return

Returns the binary representation of the given data or false on failure.

Examples

1

<?

$data = '64617461';

$return = hex2bin($data);

echo $return;

?>
data
HomeMenu