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 Works This WorksThis Too Seems To Work ERROR This Too Seems To Work This Works This WorksThis Too Seems To Work ERROR This Too Seems To Work ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function 2myfunc(){echo "Hello World";}2myfunc(); Hello World None of the mentioned No Output ERROR Hello World None of the mentioned No Output ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Functions It is always necessary to use parentheses with the print function. True False True False ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function string(){echo strstr("Hello world!", 111);}string(); o world! Hello world! 111 No Output o world! Hello world! 111 No Output ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() 3 and 4 All of the mentioned Only 2 None of the mentioned 3 and 4 All of the mentioned Only 2 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function addFunction($num1, $num2){$sum = $num1 + $num2;return $sum;}$return_value = addFunction(10, 20);echo "Returned value from the function : " .$return_value Returned value from the function : 30 Returned value from the function : $return_value Error Returned value from the function : Returned value from the function : 30 Returned value from the function : $return_value Error Returned value from the function : ANSWER DOWNLOAD EXAMIANS APP