I think questions like this are the reason why I don\'t like working with PHP. The manual is good, if you can find what you are looking for. After reading through the Array Func
I like the array_diff function, but I have my one scripted one if you dont want to pass down an array:
function array_unset_value($value, &$array) { $key = array_search($value, $array); while ($key !== false) { unset($array[$key]); $key = array_search($value, $array); } }