PHP Functions
What will be the output of the following PHP code ?
function calc($num1, $num2)
{
$total = $num1 * $num2;
return $total;
}
$result = calc(42, 0);
echo $result;

0
42
84
Error

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