mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
470 B
470 B
Variadic Functions
Variadic functions accept a variable number of arguments using the ... spread operator in the parameter list, like function sum(...$numbers). All extra arguments are collected into an array. The spread operator can also be used in function calls to unpack an array into arguments.
Visit the following resources to learn more: