bin2hex

(PHP 4, PHP 5, PHP 7)

bin2hexConverte um dado binário em representação hexadecimal

Descrição

bin2hex ( string $str ) : string

Retorna uma string ASCII uma representação hexadecimal de str. A conversão é feita byte-wise com o high-nibble primeiro.

Parâmetros

str

Um caractere.

Valor Retornado

Retorna a representação hexadecimal de uma dada string.

Veja Também

  • pack() - Pack data into binary string
  • unpack() - Unpack data from binary string