lithium\g11n\Multibyte::strlen()
Gets the string length. Multibyte enabled version of strlen().
Parameters
-
string
$stringThe string being measured for length.
-
array
$optionsAllows for selecting the adapter to use via the
nameoptions. Will use the'default'adapter by default.
Returns
integerThe length of the string on success.
Links
Source
public static function strlen($string, array $options = []) {
$defaults = ['name' => 'default'];
$options += $defaults;
return static::adapter($options['name'])->strlen($string);
}