public static function isOneOf($value, iterable $choices): bool
    {
        foreach ($choices as $choice) {
            if ($value === $choice) {
                return true;
            }
        }

        return false;
    }
public static function isOneOf($value, iterable $choices): bool
    {
        foreach ($choices as $choice) {
            if ($value === $choice) {
                return true;
            }
        }

        return false;
    }
public static function isOneOf ( $ value , iterable $ choices ) : bool { foreach ( $ choices as $ choice ) { if ( $ value === $ choice ) { return true ; } } return false ; }
Checks if value is one of a set of choices

@param mixed    $value   The value
@param iterable $choices The choices

@return bool
Checks if value is one of a set of choices