ID: 12129
Updated by: zak
Reported By: [EMAIL PROTECTED]
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.

Use:
   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 
item.

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

Dave Mertens
[EMAIL PROTECTED]

------------------------------------------------------------------------



Edit this 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