public static function match($char = '')
	{
		$result = array();

		if (empty(self::$classes))
		{
			self::init();
		}

		if (empty(self::$classes))
		{
			return $result;
		}

		if (empty($char))
		{
			$char = chr(0);
		}

		$char = $char{0};

		foreach (self::$classes as $class)
		{
			if (preg_match("/" . $class['regex'] . "/", $char))
			{
				$match = new \stdClass();
				$match->name = $class['name'];
				$match->flag = $class['flag'];
				$result[] = $match;
			}
		}

		return $result;
	}
public static function match($char = '')
	{
		$result = array();

		if (empty(self::$classes))
		{
			self::init();
		}

		if (empty(self::$classes))
		{
			return $result;
		}

		if (empty($char))
		{
			$char = chr(0);
		}

		$char = $char{0};

		foreach (self::$classes as $class)
		{
			if (preg_match("/" . $class['regex'] . "/", $char))
			{
				$match = new \stdClass();
				$match->name = $class['name'];
				$match->flag = $class['flag'];
				$result[] = $match;
			}
		}

		return $result;
	}
public static function match ( $ char = '' ) { $ result = array ( ) ; if ( empty ( self :: $ classes ) ) { self :: init ( ) ; } if ( empty ( self :: $ classes ) ) { return $ result ; } if ( empty ( $ char ) ) { $ char = chr ( 0 ) ; } $ char = $ char { 0 } ; foreach ( self :: $ classes as $ class ) { if ( preg_match ( "/" . $ class [ 'regex' ] . "/" , $ char ) ) { $ match = new \ stdClass ( ) ; $ match -> name = $ class [ 'name' ] ; $ match -> flag = $ class [ 'flag' ] ; $ result [ ] = $ match ; } } return $ result ; }
Match character class

@param   string  $char
@return  object
Match character class