I'm programming a web app where you put a hex value in a field and the app give you the details of which bit are up. But I'm facing a problem if a do:
base_convert(value,16,2)
with a 6 byte value I get the right bit correspondence, but if I do it again with 7 or more byte value I get a string that is not the right bit correspondence. I don't know how to fix this problem since it's a PHP function. Is there any alternative to this function in PHP?
You should work byte per byte instead of putting right away the full value in the base_convert() function.