This might make you cringe, but I could not find the command to remove from an array. So I wrote this:
<?php
function removeFromArrayUsingMassiveMemory($db_item_list, $num){
//remove $num from array $db_item_list and return array.
foreach ($db_item_list as $db_item)
if (strtoupper($db_item) != strtoupper($num))
$temp_array[] = $db_item;
return $temp_array;
}
?>
What is the best way to perform this action?