|
Posted by thehuby on 09/30/05 14:29
Is there an acutal function in PHP for removing an element of an array?
eg: array1 = ("zero", "one", "two", "three");
array1 = remove_element( array1, 2 );
// array1 now contains ("zero", "one", "three");
I have been trying the unset method but this seems to be corrupting my
array (which is holding a set of objects);
I can knock something together with aray_merge, array_splice and
similar but just didn't want to reinvent the wheel.
Thanks,
Rick
www.e-connected.com
[Back to original message]
|