public static function removeValueFromArray($arrayKey,$value){ $array=SessionUtils::getArray($arrayKey); $_SESSION[$arrayKey]=$array; $search=array_search($value, $array); if($search!==FALSE){ unset($_SESSION[$arrayKey][$search]); $_SESSION[$arrayKey] = array_values($_SESSION[$arrayKey]); return true; } return false; }