bin2hex
PHP Manual
PHP Manual»String Funzioni»bin2hex

bin2hex

(PHP 4, PHP 5, PHP 7, PHP 8)

bin2hex — Converte i dati binari nella rappresentazione esadecimale

Descrizione

function bin2hex(string $str): string

La funzione restituisce una stringa ASCII contenente la rappresentazione esadecimale del parametro str. La conversione viene eseguita byte per byte considerando prima il semi-byte più significativo.

Vedere anche pack() e unpack().

To Top