What will be the output of the following PHP code ?<br/>$x = "test";<br/>$y = "this";<br/>$z = "also";<br/>$x .= $y .= $z ;<br/>echo $x;<br/>echo $y; testthis error at line 4 testthisthisalso testthisalsothisalso TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = "$winner";<br/>$b = "$looser";<br/>echo $a, $b; $winner$looser $looser \ $looser TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 10;<br/>$y = 4;<br/>$z = 3;<br/>echo $x % $y % $z; 0 1 Error 2 TRUE ANSWER : ? YOUR ANSWER : ?
The result of below two statements will be:Round(2.5)Round(-2.5) 2, -2 3, -3 2.5, -2 3.5, -3.5 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$x = 3.3;<br/>$y = 2;<br/>echo $x % $y; 2 0 1 Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = 12;<br/>--$a;<br/>echo $a++; 11 10 error 12 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$color1 = "red";<br/>$color2 = "1";<br/>$color3 = "grey";<br/>echo "$color1" + "$color2" . "$color3"; 0 red1grey grey 1grey TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>define("NEW_GOOD_NAME_CONSTANT", "I have a value");<br/>define("OLD_BAD_NAME_CONSTANT", NEW_GOOD_NAME_CONSTANT);<br/>echo NEW_GOOD_NAME_CONSTANT;<br/>echo OLD_BAD_NAME_CONSTANT; ERROR I have a value I have a valueNEW_GOO_NAME_CONSTANTS I have a valueI have a value TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function fun() {<br/>$x = 0;<br/>echo $x;<br/>$x++;<br/>}<br/>fun();<br/>fun();<br/>fun();<br/> 012 111 000 123 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"); No 1 No 2 Yes 2 Yes 1 TRUE ANSWER : ? YOUR ANSWER : ?