Source Code:
(back to article)
<?php $string = 'Hello, World!'; $hex = bin2hex($string); echo $hex; // 48656c6c6f2c20576f726c6421
Result:
Report an issue