ID: 12129
Updated by: zak
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Thank you for the suggestion! However this functionality is already part of PHP.

   unset ($array['key']);

Previous Comments:

[2001-07-13 03:21:58] [EMAIL PROTECTED]

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 

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

Dave Mertens


Edit this bug report at

PHP Development Mailing List <>
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