PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while ($i = 10) {print "hi";}print "hello"; hello hihello infinite loop error hello hihello infinite loop error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;$j = 1;$k = 2;print !(($i + $k) < ($j - $k)); true 0 1 false true 0 1 false ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo $x-- != ++$x; no output 0 error 1 no output 0 error 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "red";$color2 = "green";echo "$color1" . "$color2"; red green green redgreen red red green green redgreen red 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; test myObject::CONSTANT error no output test myObject::CONSTANT error no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?class Constants{define('MIN_VALUE', '0.0');define('MAX_VALUE', '1.0');public static function getMinValue() {return self::MIN_VALUE;}public static function getMaxValue() {return self::MAX_VALUE;}}echo Constants::getMinValue();echo Constants::getMaxValue(); No output ERROR 01 0.01.0 No output ERROR 01 0.01.0 ANSWER DOWNLOAD EXAMIANS APP