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?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework