Counts the number of characters in a UTF-8 string.
$text: The string to run the operation on.
integer The length of the string.
\Drupal\Component\Utility\Unicode::strlen().
... See full list
function drupal_strlen($text) { return Unicode::strlen($text); }