bin2hex()

It convert binary data into hexadecimal representation

Example

<?php
echo bin2hex(“phpcode”);
?>

Output

706870636f6465

Share