/** * Remove specific keys from the array * @param array $array * @param array $keys The keys to remove * @param string $removal_action One of the removal action constants. Default is to delete keys but you can also * nullify / clear them instead. * @return array */ public static function removeKeys(array $array, $keys, $removal_action = self::REMOVAL_ACTION_DELETE) { //Reuse existing logic return current(CollectionUtility::removeKeys([$array], $keys, $removal_action)); }