Re: [discussion] add array_usearch()
| From: | Rowan Collins | 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 internals+get-72418@lists.php.net 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]