PHP Operators and Expressions What will be the output of the following PHP code ?class myObject { }define('myObject::CONSTANT', 'test');echo myObject::CONSTANT; error myObject::CONSTANT no output test error myObject::CONSTANT no output test ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo "echo "Hello World""; echo “Hello world” Hello world Error echo Hello world echo “Hello world” Hello world Error echo Hello world ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;function fun() {$GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];}fun();echo $y; 5 15 10 Error 5 15 10 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions If you do something to an integer that makes it larger than the maximum allowable integer or smaller than the minimum possible integer, the PHP interpreter converts the result into a . . . . . String Integers None of above Floating point number String Integers None of above Floating point number ANSWER DOWNLOAD EXAMIANS APP
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; ERROR I have a valueNEW_GOO_NAME_CONSTANTS I have a value I have a valueI have a value ERROR I have a valueNEW_GOO_NAME_CONSTANTS I have a value I have a valueI have a value 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: if_numeric is_num() is_number() is_numeric() if_numeric is_num() is_number() is_numeric() ANSWER DOWNLOAD EXAMIANS APP