API17:JString::strlen
From Joomla! Documentation
JString::strlen
Description
UTF-8 aware alternative to strlen Returns the number of characters in the string (NOT THE NUMBER OF BYTES),.
public static function strlen ($str)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $str | string | UTF-8 string |
- Returns int number of UTF-8 characters in string
- Defined on line 146 of libraries/joomla/utilities/string.php
- Referenced by
See also
JString::strlen source code on BitBucket
Class JString
Subpackage Utilities- Other versions of JString::strlen
User contributed notes
Code Examples