PHP Functions What will be the output of the following PHP code?$title = "O'malley wins the heavyweight championship!";echo ucwords($title); O’Malley Wins The Heavyweight Championship! o’malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! O’Malley wins the heavyweight championship! O’Malley Wins The Heavyweight Championship! o’malley wins the heavyweight championship! O’malley Wins The Heavyweight Championship! O’Malley wins the heavyweight championship! 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"); Error helloblabla helloblablablabla hello Error helloblabla helloblablablabla hello ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?echo stripos("I love php, I love php too!","PHP"); 7 3 10 8 7 3 10 8 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following is the right way of defining a function in PHP? function { function body } function fumctionName(parameters) { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } function { function body } function fumctionName(parameters) { function body } functionName(parameters) { function body } data type functionName(parameters) { function body } 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 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 constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} greeting ERROR GREETING Welcome to Narnia greeting ERROR GREETING Welcome to Narnia ANSWER DOWNLOAD EXAMIANS APP