What will be the output of the following PHP code ?<br/>$x = 5;<br/>{<br/>echo "$x";<br/>} Nothing 5 0 Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 0;<br/>while ($i = 10) {<br/>print "hi";<br/>}<br/>print "hello"; hihello error infinite loop hello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 5;<br/>function fun()<br/>{<br/>echo "$x";<br/>}<br/>fun(); Error 5 0 Nothing TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$four4 = 4;<br/>$three3 = 3;<br/>$two2 = 2;<br/>echo $four4 + $three3 / $two2 - 1; 3.5 Error 4.5 7 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(); 012 Error 111 123 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>echo $x-- != ++$x; no output 0 error 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$y = 2;<br/>if ($y-- == ++$y) {<br/>echo $y;<br/>} 2 1 3 no output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$var1 = 3;<br/>print ++$var++; 5 error 4 3 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$i = 1;<br/>if ($i++ && ($i == 1))<br/>printf("Yesn$i");<br/>else<br/>printf("Non$i"); Yes 2 No 2 No 1 Yes 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>class Constants{<br/>define('MIN_VALUE', '0.0');<br/>define('MAX_VALUE', '1.0');<br/>public static function getMinValue() {<br/>return self::MIN_VALUE;<br/>}<br/>public static function getMaxValue() {<br/>return self::MAX_VALUE;<br/>}<br/>}<br/>echo Constants::getMinValue();<br/>echo Constants::getMaxValue(); ERROR No output 0.01.0 01 TRUE ANSWER : ? YOUR ANSWER : ?