PHP Functions What will be the output of the following PHP code?$op2 = "blabla"; function foo($op1) {echo $op1;echo $op2;}foo("hello"); hello Error helloblablablabla helloblabla hello Error helloblablablabla helloblabla ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function do($myString) {echo strpos($myString, "donkey",0);}do("The donkey looks like a horse."); 5 4 2 None of the mentioned 5 4 2 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
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 ?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 strlen() returns the length of the string on success and . . . . if the string is empty. -1 0 NULL Garbage value -1 0 NULL Garbage value ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;}$result = calc(42, 0);echo $result; 84 0 42 Error 84 0 42 Error ANSWER DOWNLOAD EXAMIANS APP