fuel/fuel/core/classes/validation.php
public function _validation_match_collection($val, $collection = array())
	{
		if ( ! is_array($collection))
		{
			$collection = func_get_args();
			array_shift($collection);
		}

		return in_array($val, $collection);
	}
public function _validation_match_collection($val, $collection = array())
	{
		if ( ! is_array($collection))
		{
			$collection = func_get_args();
			array_shift($collection);
		}

		return in_array($val, $collection);
	}
public function _validation_match_collection ( $ val , $ collection = array ( ) ) { if ( ! is_array ( $ collection ) ) { $ collection = func_get_args ( ) ; array_shift ( $ collection ) ; } return in_array ( $ val , $ collection ) ; }
Match against an array of values

@param   string
@param   array
@return  bool
Match against an array of values