PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i % ++$i; $i++) {print"i";} no output error 0 infinite loop no output error 0 infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i < 5; $i++) {for(; $i < 5; $i++)print"i";} no output iiiiiiiiiiiiiiiiiiiiiiiii infinite loop iiiii no output iiiiiiiiiiiiiiiiiiiiiiiii infinite loop iiiii ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = array("hi", "hello", "bye");foreach ($a as $value) {if (count($a) == 2)print $value;} no output infinite loop hihello hihellobye no output infinite loop hihello hihellobye ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = array("hi", "hello", "bye");for (;count($a) < 5;) {if (count($a) == 3)print $a;} (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely no output hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely ArrayArrayArrayArrayArrayArray….infinitely (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely no output hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely ArrayArrayArrayArrayArrayArray….infinitely ANSWER DOWNLOAD EXAMIANS APP