Re: Array remove function?

From: Date: Tue, 10 Apr 2007 22:09:47 +0000
Subject: Re: Array remove function?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-252486@lists.php.net to get a copy of this message
Lori Lay wrote:
Tijnema ! wrote:
On 4/10/07, Daevid Vincent <daevid@daevid.com> wrote:
OMG. Now that is the best idea. How simple. Guess I learned something new today too! :)
-----Original Message----- From: Lori Lay [mailto:llay@laysercomputing.com] Use array_search() and unset()?
Interesting, I didn't thought of that :) But should i submit a future request for such function? Tijnema
Gad. I have enough trouble keeping track of all the functions php has already :-) I wouldn't use it very often, but others might... I think I can smell a long thread starting ;-) Lori Such a function is inherently a Bad Idea (tm). array-values are not unique. Array keys are. So unless you want to emulate the way array_flip works (bad idea (tm)), I'd say: leave it be.
- tul

« previous php.general (#252486) next »