public static function ip($check, $type = 'both')
	{
		return with(new \Hubzero\Utility\Ip($check))->isValid($type);
	}
public static function ip($check, $type = 'both')
	{
		return with(new \Hubzero\Utility\Ip($check))->isValid($type);
	}
public static function ip ( $ check , $ type = 'both' ) { return with ( new \ Hubzero \ Utility \ Ip ( $ check ) ) -> isValid ( $ type ) ; }
Validates an IP address

@param   string  $check  The string to test
@param   string  $type   The IP Protocol version to validate against
@return  bool
Validates an IP address