Answer & Solution
Answer: Option A
Solution:
The output of the code will be
24
because the multiply()
function takes a variable number of arguments using the ...$args
syntax and multiplies them together using a foreach
loop. The function is then called with arguments 2, 3, and 4, resulting in the product of 2 * 3 * 4 = 24 being echoed.