function DeleteArrayValue($Array, $Value) {
//Function used to delete a value from an array.
for($i=0;$i<count($Array);$i++) {
if ($Array[$i] == $Value) unset($Array[$i]);
if(!isset($Array[$i])) {
$Array[$i] = $Array[$i+1];
unset($Array[$i+1]);
}
}
return $Array;
}
Pass the $Array and $Value to be removed and bam, it will be deleted in the array. Hope this helps... 😃