PHP bin2hex() May 21, 2012 Pramod T P It convert binary data into hexadecimal representation Example <?php echo bin2hex(“phpcode”); ?> Output 706870636f6465