PHP Operators and Expressions What will be the output of the following PHP code ?define("__LINE__", "PHP is a scripting language");echo __LINE__; PHP is a scripting language __LINE__ 2 ERROR PHP is a scripting language __LINE__ 2 ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define('IF', 42);echo "IF: ", IF; No output IF: IF:42 ERROR No output IF: IF:42 ERROR 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; I have a value I have a valueI have a value I have a valueNEW_GOO_NAME_CONSTANTS ERROR I have a value I have a valueI have a value I have a valueNEW_GOO_NAME_CONSTANTS 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}; testvalue test error, constant value cannot be changed testtest testvalue test error, constant value cannot be changed testtest 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; no output test error myObject::CONSTANT no output test error myObject::CONSTANT ANSWER DOWNLOAD EXAMIANS APP