Sadat Sadat - 2 years ago 100
PHP Question

Interview question: In php, is 123==0123?

I have answered it is false. then he asked why? i couldn't answer. Can anyone make the answer? I am very interested to learn it.

Answer Source

Prefixing a number with 0 indicates octal (base 8), much the same way 0x indicates hex (base 16).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download