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.
PHP
PHP Quiz
Start Quiz

or Read more about PHP Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback