PHP Operators and Expressions What will be the output of the following PHP code ?class myObject { }define('myObject::CONSTANT', 'test');echo myObject::CONSTANT; test error myObject::CONSTANT no output test error myObject::CONSTANT no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 5;while (--$i > 0) {$i++;print $i;print "hello";} 4hello4hello4hello4hello4hello…..infinite error no output 5hello5hello5hello5hello5hello…..infinite 4hello4hello4hello4hello4hello…..infinite error no output 5hello5hello5hello5hello5hello…..infinite ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$4four = 4;$3three = 3;$2two = 2;echo $4four + $3three / $2two - 1; 3.5 7 Error 4.5 3.5 7 Error 4.5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 0;function fun() {echo $GLOBALS['x'];$x++;}fun();fun();fun(); 012 Error 000 Nothing 012 Error 000 Nothing ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "1";$color2 = "1";echo "$color1" + "$color2"; 2 1 11 0 2 1 11 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?int $one = 1;echo "$one"; 1 Error 0 $one 1 Error 0 $one ANSWER DOWNLOAD EXAMIANS APP