PHP String Exercises : Get a hex dump of a string
PHP String: Exercise-16 with Solution
Write a PHP script to get a hex dump of a string.
Sample string : '[email protected]'
<?php $str = '[email protected]'; echo bin2hex($str)."\n"; ?>
PHP Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?