i want to know, how to remove an element from the array or reinitialise the array?
This is off the top of my head:
Removing $elem from $arry:
$arry = array_diff($arry,array($elem));
Reinitialising $arry:
$arry=array_diff($arry,$arry);
though
unset($array); $arry=array();
'd probably be faster there.
Thanks for your instant reply, i have used the same solution you have suggested.
Thanks