It\'s neither 0x nor 0; what is it? Is there?
Check the manual: PHP only supports decimal, hexadecimal and octal integer notation, but you can use bindec() instead.
Also, keep in mind that each hex digit represents 4 bits, so it's easy to convert between binary notation and hex. The same is true for octal, but for various reasons it's used less often in practice.