-
What will be the output of the following PHP code?
<?php
function Add($n1, $n2)
{
$total = $n1 + $n2;
echo chr($total);
}
$var = "Add";
$var(14, 41);
?>
-
- 7
- 41
- 14
- 55
- None of these
Correct Option: A
It is possible to call a function using a variable which stores the function name also the chr() function returns a character from the specified ASCII value.