11.
What is the output of the following PHP code?

<?php
function multiply(...$args) {
$result = 1;
foreach ($args as $value) {
$result *= $value;
}
return $result;
}
echo multiply(2, 3, 4);
?>
12.
Which PHP feature allows defining functions without specifying their names?
13.
What will be the output of the following PHP code?

<?php
$greet = function($name) {
return "Hello, $name!";
};
echo $greet("John");
?>
14.
Which of the following statements about variable scope in PHP functions is true?
15.
What is the output of the following PHP code?

<?php
$num = 10;
function testScope() {
global $num;
echo $num;
}
testScope();
?>
16.
Which PHP feature allows passing a function as an argument to another function?
17.
What will be the output of the following PHP code?

<?php
function uppercase($str) {
return strtoupper($str);
}
echo uppercase("hello");
?>
18.
What is the significance of passing functions as arguments in PHP?
19.
Which PHP keyword is used to check if a function exists before calling it?
20.
What is the output of the following PHP code?

<?php
function greet() {
echo "Hello, World!";
}
if (function_exists('greet')) {
greet();
} else {
echo "Function does not exist";
}
?>