PHP Operators and Expressions What will be the output of the following PHP code ?define("NEW_GOOD_NAME_CONSTANT", "I have a value");define("OLD_BAD_NAME_CONSTANT", NEW_GOOD_NAME_CONSTANT);echo NEW_GOOD_NAME_CONSTANT;echo OLD_BAD_NAME_CONSTANT; I have a value I have a valueNEW_GOO_NAME_CONSTANTS ERROR I have a valueI have a value I have a value I have a valueNEW_GOO_NAME_CONSTANTS ERROR I have a valueI have a value ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = "";while ($i = 10) {print "hi";}print "hello"; hello error hihello infinite loop hello error hihello infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){echo "$x";}fun(); 5 Error Nothing 0 5 Error Nothing 0 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 redgreen red green green red redgreen red green green ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 5;$b = -7;$c =0;$d = ++$a && ++$b || ++$c;print $d;print $a; 16 05 15 06 16 05 15 06 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;} error 555555555…infinitely 54321 5 error 555555555…infinitely 54321 5 ANSWER DOWNLOAD EXAMIANS APP