lithium\g11n\Multibyte::strlen()
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
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);
}