PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1; 0 1 3 2 0 1 3 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?< ? php < ? php echo "Hello world"; ? > ? > Hello Hello world Error Nothing Hello Hello world Error Nothing ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("GREETING", "PHP is a scripting language");echo $GREETING; $GREETING no output GREETING PHP is a scripting language $GREETING no output GREETING PHP is a scripting language 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; error test myObject::CONSTANT no output error test myObject::CONSTANT no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$auth = 1;$status = 1;if ($result = (($auth == 1) && ($status != 0))) {print "result is $result";} no output error result is 1 result is true no output error result is 1 result is true ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?print "echo hello world"; nothing error hello world echo hello world nothing error hello world echo hello world ANSWER DOWNLOAD EXAMIANS APP