Considering the output of the following statement in php
hex2bin(dechex(4112))
And the output for this
"\020\020"
I have come to understand that this is the octal representation of the hex representation of the above decimal value (4112 -> 0x1010) with each octal part being the thing in between the backslashes. So three octal digits are used to represent two hex digits. Here the 0x10 translates to 020 in octal so we get \020\020 for 0x1010
But what is the name for this sort of encoding? Where does it come from? Searches on the internet about this did not help much
Also why does the following statement fail?
hex2bin(dechex(123123))