From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     Feature/Change Request
Bug description:  array_remove()

I would like to see an function called array_remove(needle, haystack) with
removes an item from an associative (or indexed) array.

Currently i have a workaround which loops the array. During the loop a new
array is created. When the loop finds the item which has to be removed, it
skip the current item.

After the loop, the new array is returned. A function like this would
complete the array functions.

Dave Mertens
[EMAIL PROTECTED]
-- 
Edit bug report at: http://bugs.php.net/?id=12129&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to