I can not understand how to correctly translate a 16thic binary number into php.
There are two options:
print base_convert(0xf, 16, 2)."\n"; print base_convert("f", 16, 2)."\n";
At the output we get:
10101 1111
UPD
The correct question will be:
From which hangover the standard function translates the hexadecimal 0xf into the decimal 15 and then separately translates each digit into binary code with the result 10101
instead of the expected 1111?