You are here : phpstringhex2bin

hex2bin() - string

Decodes a hexadecimally encoded binary string.
Parameters :
  • data - Hexadecimal representation of data.

  • Syntax

    string hex2bin
        ( string $data
       )


    Example

    <?php$hex = hex2bin("6578616d706c65206865782064617461");var_dump($hex);?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference