Re:Upcoming Hardening in PHP
by p4bl0 on Friday November 15, 2024 @04:51AM
(#42145384)
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 :).
[ Parent
| on HN ]
Re:Upcoming Hardening in PHP
by withinboredom on Friday November 15, 2024 @06:00AM
(#42145763)
Variadic functions serve a purpose but also change how the engine parses arguments. func_get_args is faster and more efficient.