3 ms·
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 initia
by p4bl0 2y 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 :).
- withinboredom 2y agoVariadic functions serve a purpose but also change how the engine parses arguments. func_get_args is faster and more efficient.