You are here : phpstringbin2hex

bin2hex() - string

Returns an ASCII string containing the hexadecimal representation
   of str. The conversion is done byte-wise
   with the high-nibble first.
Parameters :
  • str - A string.

  • Syntax

    string bin2hex
        ( string $str
       )


    Example


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference