Programming Languages PHP Objective
Sep 23, 2025

Which PHP feature allows you to unpack arrays in function calls?

Choose the correct answer:
A) Spread operator (...)
B) Splat operator (*)
C) Unpack operator (>>)
D) Extract operator (<<)
Detailed Explanation

Explanation: The spread operator (...) allows unpacking arrays in function calls and array literals. Example: function_name(...$array) unpacks the array as individual arguments.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback