3 ms·
array_find parameter ordering is modeled after other non-variadic array functions, e.g. array_filter also having ($array, $callback) order. But I agree, there
by bwoebi 2y ago
array_find parameter ordering is modeled after other non-variadic array functions, e.g. array_filter also having ($array, $callback) order.
But I agree, there is already some inconsistency, and when adding a new function you have to choose which function to make it consistent and which one to make it inconsistent with.