<!DOCTYPE html>
<html>
<body>
<p>A backslash followed by an 'x' and a hex number represents a hex value:</p>
<?php
$x = "\x48\x65\x6c\x6c\x6f";
echo $x;
?>
</body>
</html>
A backslash followed by an 'x' and a hex number represents a hex value: