bin2hex (php 4, php 5, php 7, php 8)

<?php

$hex = bin2hex('Hello world!');

var_dump($hex);
var_dump(hex2bin($hex));
?>
SAMER SAEID