Bug #12129: array_remove()

From: Date: Fri, 13 Jul 2001 07:21:58 +0000
Subject: Bug #12129: array_remove()
Groups: php.dev 
Request: Send a blank email to php-dev+get-59934@lists.php.net to get a copy of this message
From: dmertens@zyprexia.com 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 dmertens@zyprexia.com -- Edit bug report at: http://bugs.php.net/?id=12129&edit=1

« previous php.dev (#59934) next »