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

0
Will this work
Error
$msg

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