Re: Array Remove
- From: "comp.lang.php" <phillip.s.powell@xxxxxxxxx>
- Date: 30 Sep 2005 08:15:48 -0700
There is no native PHP process to do the equivalent of "array_remove()"
as of yet. Your best would be to slap together a function using
unset($array['element']), as I've had to do.
Bear in mind that in future additions to PHP an "array_remove()"
function might someday exists, it's best that when you create it to
wrap the function around a "function_exists()" conditional block:
if (!function_exists('array_remove')) {
function array_remove($element, &$array, $willSearchKeys) {
// EXERCISE LEFT TO THE STUDENT!
}
}
Phil
.
- References:
- Array Remove
- From: thehuby
- Array Remove
- Prev by Date: PHP 5.0.4 with Windows XP - trying to do file zip utility causes Apache 2.0.53 to crash
- Next by Date: How to fix open_basedir restriction in effect... problem
- Previous by thread: Re: Array Remove
- Next by thread: Image display that will change for every 5 sec.
- Index(es):