What will be the output of the following PHP code ?<br/>for ($i = 0;$i = -1;$i = 1) {<br/>print $i;<br/>if ($i != 1)<br/>break;<br/>} infinite loop -1 1 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = array("hi", "hello", "bye");<br/>foreach ($a as $value) {<br/>if (count($a) == 2)<br/>print $value;<br/>} hihello no output infinite loop hihellobye TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>const $b = 1;<br/>switch($b) {<br/>case 1:<br/>print "hi";<br/>break;<br/>case 1:<br/>print "hello";<br/>break;<br/>default:<br/>print "hi1";<br/>} hihello hi error hello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 10;<br/>$b = 11;<br/>if ($a < ++$a || $b < ++$b)<br/>print "hello";<br/>else<br/>print "hi"; error hello hi no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; $i < 5; $i++) {<br/>for(; $i < 5; $i++)<br/>print"i";<br/>} infinite loop iiiiiiiiiiiiiiiiiiiiiiiii iiiii no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($x = -1; $x < 10;--$x) {<br/>print $x;<br/>} infinite loop 12345678910 123456789101112 1234567891011 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>for ($i = 0; $i % ++$i; $i++) {<br/>print"i";<br/>} error 0 infinite loop no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>if (0.1)<br/>print "hi";<br/>else<br/>print "how are u"; no output error hi how are u TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = "";<br/>while($i) {<br/>print "hi";<br/>}<br/>print "hello"; infinite loop hihello error hello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x;<br/>for ($x = -3; $x < -5; ++$x) {<br/>print ++$x;<br/>} infinite loop -3-4 no output -3-4-5 TRUE ANSWER : ? YOUR ANSWER : ?