Funções PHP |
. Glossários Funções PHP - bin2hex ( ) |
(PHP 3>= 3.0.9, PHP 4 , PHP 5)
bin2hex -- Converte um dado binário em hexadecimal
string bin2hex ( string str)
Retorna uma string ASCII uma representação hexadecimal de str. A conversão é feita byte-wise com o high-nibble primeiro.
Exemplo:
Veja os exemplos clicando aqui
Veja também pack() e unpack().