Function mb_strlen

Get string length.

Package: Cake
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at Cake/bootstrap.php
mb_strlen( string $string string $encoding null )

Parameters summary

string $string The string being checked for length.
string $encoding = null Character encoding name to use. If it is omitted, internal character encoding is used.

Returns

  • integer

    The number of characters in string $string having character encoding encoding. A multi-byte character is counted as 1.

© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/function-mb_strlen.html