What will be the result of following code?
<?php 
$i = (string) 0123;
echo (int) $i;
?>
Explanation
0123 is an octal number. Its decimal representation - 83.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes