<?
$int = 37;

echo ("int to hexa:");
echo (hexdec($int));


$hex = 55;

echo (" hexa to int:");
echo (dechex($hex));
?>
Unsigned type için & operatörü kullanabilirsiniz aynı şekilde PHP için de. Ama farklı türde çevirilier yapacaksanız "<<" ya da ">>" operatörleriyle sayıları shift yöntemiyle ötelemeniz de mümkün.