Re: re: removing an item from an array
| From: | Yasuo Ohgaki | Date: | Tue, 21 Aug 2012 22:26:50 +0000 |
| Subject: | Re: re: removing an item from an array | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62374@lists.php.net to get a copy of this message | ||
Hi,
2012/8/22 Levi Morrison <morrison.levi@gmail.com>:
> On Tue, Aug 21, 2012 at 4:13 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
>> Hi,
>>
>> I see why with new Criticism section in the wiki page.
>> You've also misunderstood that array_udelete() is
>> array_walk() variant, not array_filter().
>>
>
> Actually, array_udelete is far more similar to array_filter than it is
> array_walk. . .
Why did you change the equivalent code?
array_walk is the best(fast and memory efficient) way
to delete elements.
This code may be refereed from old PHP users, therefore
we should write better code.
If you don' t have good reason to do so, please revert
the change.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net