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

Posted on    June-13-2011 4:22 AM

 1 Answer(s)
  1198  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    June-13-2011 12:00 AM

PHP Interpreter treats numbers beginning with 0 as octal. Thats why you will get different output.

Don't want to miss updates? Please click the below button!

Follow MindStick