PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;{$x = 10;echo "$x";}echo "$x"; 510 105 1010 error 510 105 1010 error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while (++$i && --$i) {print $i;} 1234567891011121314….infinitely no output error 01234567891011121314…infinitely 1234567891011121314….infinitely no output error 01234567891011121314…infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "red";$color2 = "red";echo "$color1" + "$color2"; 0 1 redgreen red green 0 1 redgreen red green ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions In order to find if a variable holds an actual number or a string containing characters that can be translated into a number you can use: is_num() if_numeric is_number() is_numeric() is_num() if_numeric is_number() is_numeric() ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 10;$j = 0;if ($i || ($j = $i + 10)) {echo "true";}echo $j; true20 true0 0 20 true20 true0 0 20 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = '12345';print "qwe{$a}rty"; no output error qwe12345rty qwe{$a}rty no output error qwe12345rty qwe{$a}rty ANSWER DOWNLOAD EXAMIANS APP