PHP Functions
What will be the output of the following PHP code?
function foo($msg) {
echo "$msg";
}
$var1 = "foo";
$var1("will this work");

$msg
Will this work
Error
0

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!

ANSWER DOWNLOAD EXAMIANS APP