lithium\g11n\Multibyte::strlen()

public static method

Gets the string length. Multibyte enabled version of strlen().

Parameters

  • string $string

    The string being measured for length.

  • array $options

    Allows for selecting the adapter to use via the name options. Will use the 'default' adapter by default.

Returns

integer

The length of the string on success.

Source

	public static function strlen($string, array $options = []) {
		$defaults = ['name' => 'default'];
		$options += $defaults;
		return static::adapter($options['name'])->strlen($string);
	}