Interview Questions

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

PHP Interview Questions and Answers


(Continued from previous question...)

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.

(Continued on next question...)

Other Interview Questions