PHP Control Structures (Loop) What will be the output of the following PHP code ?const $b = 1;switch($b) {case 1:print "hi";break;case 1:print "hello";break;default:print "hi1";} hello hihello hi error hello hihello hi error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while(?++$i || --$i) {print $i;} 1234567891011121314...infinitely 1 0 01234567891011121314...infinitely 1234567891011121314...infinitely 1 0 01234567891011121314...infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?switch($b) {case 2:print "hello";break;case 1:print "hi";break;} no output error hi hello no output error hi hello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while ($i++) {print $i;}print $i; 1 0 infinite loop 01 1 0 infinite loop 01 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "hello";if (strlen($a))print strlen($a);elseprint "hi"; hellolength hi 5 error hellolength hi 5 error 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 hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely no output ArrayArrayArrayArrayArrayArray….infinitely (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely no output ArrayArrayArrayArrayArrayArray….infinitely ANSWER DOWNLOAD EXAMIANS APP