I must be blind but I have search the online php manual for the last hour trying to find the answer to this question:
How do I remove an item from an array based on its index or key name?
Thanks very much -ruach
Never Mind I found the answer
array_splic()
:')
Or unset($array['index']);
function _removeElement($arr,$index){ $tempArr = array(); $j = 0; for($i=0;$i<count($arr);$i++){ if($i==$index) continue; $tempArr[$j] = $arr[$i]; $j++; } return $tempArr; }