0

PHP intval

Why intval("0055")==45 ? I think it should be "55"

28th Dec 2017, 10:07 AM
caheamt
caheamt - avatar
2 Answers
+ 3
since you have "0055" which is considered as an octal number and its equivalent base 10 value is 45
28th Dec 2017, 10:32 AM
Мг. ĐšĐœĐ°ĐżđŸŒ 
Мг. ĐšĐœĐ°ĐżđŸŒ  - avatar
5th Apr 2018, 4:15 AM
Sura sit 905
Sura sit 905 - avatar