Re: Array remove function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lori Lay wrote:
Tijnema ! wrote:
On 4/10/07, Daevid Vincent <daevid@xxxxxxxxxx> wrote:
OMG. Now that is the best idea. How simple. Guess I learned something new
today too! :)

> -----Original Message-----
> From: Lori Lay [mailto:llay@xxxxxxxxxxxxxxxxxxx]
>
> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux