PHP Operators and Expressions What will be the output of the following PHP code ?class myObject { }define('myObject::CONSTANT', 'test');echo myObject::CONSTANT; error test no output myObject::CONSTANT error test no output myObject::CONSTANT ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define('IF', 42);echo "IF: ", IF; ERROR IF: IF:42 No output ERROR IF: IF:42 No output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 2;while (++$i) {while ($i --> 0)print $i;} 10 no output 210 infinite loop 10 no output 210 infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo $x-- != ++$x; no output 1 0 error no output 1 0 error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){$x = 10;echo "$x";}fun();echo "$x"; 510 105 0 Error 510 105 0 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color = "red";echo "$color";echo "$COLOR";echo "$Color"; Error red redred redredred Error red redred redredred ANSWER DOWNLOAD EXAMIANS APP