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";} infinite loop iiiiiiiiiiiiiiiiiiiiiiiii no output iiiii infinite loop iiiiiiiiiiiiiiiiiiiiiiiii no output 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;} hihellobye no output hihello infinite loop hihellobye no output hihello infinite loop 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;} no output ArrayArrayArrayArrayArrayArray….infinitely (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely no output ArrayArrayArrayArrayArrayArray….infinitely (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely ANSWER DOWNLOAD EXAMIANS APP