hex2bin

hex2bin

(PHP >= 5.4.0)

hex2binDecodes a hexadecimally encoded binary string

Description

string hex2bin ( string $data )

Decodes a hexadecimally encoded binary string.

Caution

This function does NOT convert a hexadecimal number to a binary number. This can be done using the base_convert() function.