- bin2hex: documentation ( source)
<?php
$formatter = NumberFormatter::create('PL', NumberFormatter::DECIMAL);
$result = $formatter->format(1090663, NumberFormatter::TYPE_DOUBLE);
echo $result . ' = ' . bin2hex($result) . PHP_EOL;
echo '1 090 663' . ' = ' . bin2hex('1 090 663') . PHP_EOL;