PHP Functions What will be the output of the following PHP code?function foo($msg) {echo "$msg";}$var1 = "foo";$var1("will this work"); $msg Error Will this work 0 $msg Error Will this work 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} greeting GREETING ERROR Welcome to Narnia greeting GREETING ERROR Welcome to Narnia ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function _func(){echo "Hello World";}_func(); Hello World None of the mentioned No Output ERROR Hello World None of the mentioned No Output ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() Only 2 All of the mentioned 3 and 4 None of the mentioned Only 2 All of the mentioned 3 and 4 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function TV($string) {echo "my favourite TV show is ".$string;function b() {echo " I am here to spoil this code";}}function b() {echo " I am here to spoil this code";}b(); None of the mentioned my favourite TV show isI am here to spoil this code I am here to spoil this code Error None of the mentioned my favourite TV show isI am here to spoil this code I am here to spoil this code Error ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$op2 = "blabla"; function foo($op1) {echo $op1;echo $op2;}foo("hello"); hello helloblablablabla helloblabla Error hello helloblablablabla helloblabla Error ANSWER DOWNLOAD EXAMIANS APP