Q:

Write a PHP script to get a hex dump of a string

0

Write a PHP script to get a hex dump of a string.

Sample string : 'rayy@example.com'

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
$str = 'rayy@example.com';
echo bin2hex($str)."\n";
?>

Sample Output:

72617979406578616d706c652e636f6d

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now