PHP Operators and Expressions What will be the output of the following PHP code ?$i = 2;while (++$i) {while ($i --> 0)print $i;} 10 210 infinite loop no output 10 210 infinite loop no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$cars = array("Volvo", "BMW", "Toyota");print $cars[2]; Volvo Error BMW Toyota Volvo Error BMW Toyota ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;function fun() {$y = $GLOBALS['x'] + $GLOBALS['y'];}fun();echo $y; 10 15 Error 5 10 15 Error 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;$x = $i++;$y = ++$i;print $x;print $y; 21 01 02 12 21 01 02 12 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 error no output myObject::CONSTANT test error no output myObject::CONSTANT ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;$w = 4;$y *= $w /= $y;echo $y, $w; 42 80.5 44 82 42 80.5 44 82 ANSWER DOWNLOAD EXAMIANS APP