PHP function bin2hex()

Availability in PHP 4.0

Convert binary data into hexadecimal representation

Parameters

Parameter Data type Default value Note
$str string not A character.

Return values

string

the hexadecimal representation of the given string.

Other resources

Official bin2hex documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.