PHP Operators and Expressions What will be the output of the following PHP code ?$a = 0x6db7;print $a<<6; 1797568 0x6dc0 no output error 1797568 0x6dc0 no output error 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_number() is_num() if_numeric is_numeric() is_number() is_num() if_numeric is_numeric() ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?function fun() {$x = 0;echo $x;$x++;}fun();fun();fun(); 123 012 111 000 123 012 111 000 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 redgreen 1 red green 0 redgreen 1 red green 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 01234567891011121314…infinitely error 1234567891011121314….infinitely no output 01234567891011121314…infinitely error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("VAR_NAME","test");${VAR_NAME} = "value";echo VAR_NAME;echo ${VAR_NAME}; testtest testvalue test error, constant value cannot be changed testtest testvalue test error, constant value cannot be changed ANSWER DOWNLOAD EXAMIANS APP