Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

bin2hex

Description

The bin2hex of String for PHP convert binary data into hexadecimal representation.

Syntax

bin2hex(string $string): string

Parameters

string

A string.

Return

Returns the hexadecimal representation of the given string.

Examples

1

<?

$string = 'data';

$return = bin2hex($string);

echo $return;

?>
64617461
HomeMenu