hex to bin php
snippet in php

hex to bin php

user8595

$hexadecimal = 'afc758';

$binary = base_convert($hexadecimal, 16, 2);

echo $hexadecimal . ' -> binary value is: ' . $binary;