Re: [discussion] add array_usearch()

From: Date: Sun, 09 Feb 2014 02:02:11 +0000
Subject: Re: [discussion] add array_usearch()
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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)

« previous php.internals (#72418) next »