Convert "Hello World!" to hexadecimal values in PHP
Description
The following code shows how to convert "Hello World!" to hexadecimal values.
Example
// w ww .j a va 2 s .c o m
<?php
$str = bin2hex("Hello World!");
echo($str);
?>
The code above generates the following result.