3 ms·
You should look at `func_get_args()` usage in the wild. This is sometimes used for (mostly outdated) good-enough reasons and doing this might break it?
by notresidenter 2y ago
You should look at `func_get_args()` usage in the wild. This is sometimes used for (mostly outdated) good-enough reasons and doing this might break it?
- p4bl0 2y agoI 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.