Hacker News new | ask | show | jobs
by p4bl0 583 days ago
I know of func_get_args, but proper variadic functions have been a thing since PHP 5.6 (released more than 10 years ago) using the ... operator. Also, my initial proposal doesn't break existing code :).
1 comments

Variadic functions serve a purpose but also change how the engine parses arguments. func_get_args is faster and more efficient.