PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia");echo greeting;} greeting GREETING Welcome to Narnia ERROR greeting GREETING Welcome to Narnia ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sayHello() {echo "HelloWorld";}$function_holder = "sayHello";$function_holder(); No Output HelloWorld sayHello Error No Output HelloWorld sayHello Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function test($int){if ($int == 1)echo "This Works";if ($int == 2)echo "This Too Seems To Work";}test(1);TEST(2); This WorksThis Too Seems To Work This Too Seems To Work ERROR This Works This WorksThis Too Seems To Work This Too Seems To Work ERROR This Works ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); $msg 0 Will this work Error $msg 0 Will this work Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?define("GREETING","Hello you! How are you today?");echo constant("GREETING"); Hello you! How are you today? GREETING “GREETING”,”Hello you! How are you today?” GREETING, Hello you! How are you today? Hello you! How are you today? GREETING “GREETING”,”Hello you! How are you today?” GREETING, Hello you! How are you today? ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following functions can be used to compress a string? gzcompress() zip_compress() compress() zip() gzcompress() zip_compress() compress() zip() ANSWER DOWNLOAD EXAMIANS APP