src/Kisma/Core/Utility/Scalar.php
public static function in()
    {
        $_haystack = func_get_args();

        if ( !empty( $_haystack ) && count( $_haystack ) > 1 )
        {
            $_needle = array_shift( $_haystack );

            return in_array( $_needle, $_haystack );
        }

        return false;
    }
public static function in()
    {
        $_haystack = func_get_args();

        if ( !empty( $_haystack ) && count( $_haystack ) > 1 )
        {
            $_needle = array_shift( $_haystack );

            return in_array( $_needle, $_haystack );
        }

        return false;
    }
public static function in ( ) { $ _haystack = func_get_args ( ) ; if ( ! empty ( $ _haystack ) && count ( $ _haystack ) > 1 ) { $ _needle = array_shift ( $ _haystack ) ; return in_array ( $ _needle , $ _haystack ) ; } return false ; }
Convenience "in_array" method. Takes variable args.

The first argument is the needle, the rest are considered in the haystack. For example:

Option::in( 'x', 'x', 'y', 'z' ) returns true
Option::in( 'a', 'x', 'y', 'z' ) returns false

@internal param mixed $needle
@internal param mixed $haystack

@return bool
Convenience in_array method . Takes variable args .