What will be the output of the following PHP code ?<br/>$color = red;<br/>echo "$color"; red red $color Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 3, 4, 5, 6;<br/>echo "$x"; 6 Error 3 4 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<?php"Hello World"?> Error Hello World Missing semicolon error Nothing TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function fun() {<br/>static $x = 0;<br/>echo $x;<br/>$x++;<br/>}<br/>fun();<br/>fun();<br/>fun(); 111 012 123 Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x;<br/>echo "$x"; Error 0 1 Nothing TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 2;<br/>while (++$i) {<br/>while ($i --> 0)<br/>print $i;<br/>} 10 210 infinite loop no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 4;<br/>$y = 3$z = 1;<br/>$z = $z + $x + $y;<br/>echo "$z"; $z 15 8 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 5;<br/>while (--$i > 0 && ++$i) {<br/>print $i;<br/>} error 5 54321 555555555…infinitely TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$y = 2;<br/>$w = 4;<br/>$y *= $w /= $y;<br/>echo $y, $w; 82 42 44 80.5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$cars = array("Volvo", "BMW", "Toyota");<br/>print $cars[2]; Toyota BMW Error Volvo TRUE ANSWER : ? YOUR ANSWER : ?