PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while ($i < 3) {$i++;}print $i; 3 2 1 0 3 2 1 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user) - 1; $x++) {if ($user[$x++] == "Shrek")continue;printf ($user[$x]);} AshleyShrek Bale BaleBlank AshleyBaleBlank AshleyShrek Bale BaleBlank AshleyBaleBlank ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0;$i = -1;$i = 1) {print $i;if ($i != 1)break;} 1 0 -1 infinite loop 1 0 -1 infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($count = 0; $count < 3;$count++); {print "hi";continue;print "hello";} hihellohihellohihello hi hellohellohello hihihi hihellohihellohihello hi hellohellohello hihihi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i % ++$i; $i++) {print"i";} error infinite loop no output 0 error infinite loop no output 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;for ($i) {print $i;} error 0 infinite loop no output error 0 infinite loop no output ANSWER DOWNLOAD EXAMIANS APP