php - I want to know the difference between print two integer 204 and 0204 -


this question has answer here:

i want know difference between echo integer 204 , 0204 without quote.

echo 204; // output : 204 echo 0204; // output : 132 

refer #example 1

echo 204; // output : 204 because decimal number echo 0204; // output : 132 because octal number 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -