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?
Awadhendra Tiwari

Total Post:510

Points:2550

Posted on    June-13-2011 4:22 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  759  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    June-13-2011 12:00 AM

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

Recent Activities

David Miller Created New Discussion What are memory leaks in java   15 hours ago

Mayank Tripathi added new Question How to detect memory leak in Java   15 hours ago

ashish srivastava added new Blog Impact of Google Reviews in SEO   19 hours ago

Tarun Kumar added new Article iOS : SQLite Commands   21 hours ago

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