PHP Loops Test

 

<?php 
$i = 0;
for(;$i<=10;$i+=2);{
echo $i;
}
?>

What will the output be?

<?php 
$i = 1;
for(;$i<=10;$i+=2);{
echo $i;
}
?>

What will the output be?

Leave a Reply

Your email address will not be published.