Home Menu

bin2hex

Convert binary data into hexadecimal representation

Syntax

bin2hex ( string $str ) : string

Parameters

str

A string.

Return

Returns the hexadecimal representation of the given string.

Examples

<?

$str = 'data';

$return = bin2hex($str);
echo $return;

?>
64617461

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms