Q. what is the output of below program?
Code:
<?php
for($i=0; $i<5; $i++){
$i = $i+1;
}
echo "$i";
?>
β
Correct Answer: (B)
6
<?php
for($i=0; $i<5; $i++){
$i = $i+1;
}
echo "$i";
?>
You must be Logged in to update hint/solution