PHP Operators and Expressions What will be the output of the following PHP code ?define('IF', 42);echo "IF: ", IF; IF:42 No output ERROR IF: IF:42 No output ERROR IF: ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;$z = "$x + $y";echo "$z"; $z 15 10 + 5 $x + $y $z 15 10 + 5 $x + $y ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = "test";$y = "this";$z = "also";$x .= $y .= $z ;echo $x;echo $y; testthis error at line 4 testthisalsothisalso testthisthisalso testthis error at line 4 testthisalsothisalso testthisthisalso ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo "This"."was"."a"."bad"."idea"; This, was, a, bad, idea Thiswasabadidea Error This was a bad idea This, was, a, bad, idea Thiswasabadidea Error This was a bad idea ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?class myObject { }define('myObject::CONSTANT', 'test');echo myObject::CONSTANT; myObject::CONSTANT test no output error myObject::CONSTANT test no output error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?function fun($x,$y) {$x = 4;$y = 3;$z = $x + $y / $y + $x;echo "$z";}fun(3, 4); 9 0 7 Error 9 0 7 Error ANSWER DOWNLOAD EXAMIANS APP