|
Posted by Oli Filth on 09/30/05 15:25
thehuby said the following on 30/09/2005 12: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);
>
Unset() is the method given in the manual.
In what way is it corrupting your array?
--
Oli
Navigation:
[Reply to this message]
|