Re: [discussion] add array_usearch()
On 09/02/2014 00:04, Tjerk Meesters wrote:
Is there a particular reason *not* to pass an extra parameter to
callbacks, even if it's unused?
Yeah, internal functions don't like extra parameters, e.g.:
is_numeric('123', 4);
Warning: is_numeric() expects exactly 1 parameter, 2 given in php shell code on line 1
Ah, yes, I always forget that internal functions behave rather differently from user-defined ones when it comes to parameter passing.
:)
--
Rowan Collins
[IMSoP]
Thread (11 messages)