Difference between revisions of "JString::strlen"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::strlen|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::strlen|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function strlen ($str) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 22: | Line 21: | ||
|string | |string | ||
| | | | ||
− | |UTF-8 string | + | |UTF-8 string |
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' int number of UTF-8 characters in string | |
− | int number of UTF-8 characters in string | + | * '''Defined''' on line 146 of libraries/joomla/utilities/string.php |
− | + | * '''Referenced by''' | |
− | libraries/joomla/utilities/string.php | + | ** [[JHtmlString::abridge/11.1|JHtmlString::abridge]] |
− | * | + | ** [[compliant/11.1|compliant]] |
− | + | ** [[JHtmlList::genericordering/11.1|JHtmlList::genericordering]] | |
− | * [[JHtmlString::abridge/11.1|JHtmlString::abridge]] | + | ** [[JHtmlString::truncate/11.1|JHtmlString::truncate]] |
− | * [[compliant/11.1|compliant]] | + | ** [[valid/11.1|valid]] |
− | * [[JHtmlList::genericordering/11.1|JHtmlList::genericordering]] | ||
− | * [[JHtmlString::truncate/11.1|JHtmlString::truncate]] | ||
− | * [[valid/11.1|valid]] | ||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JString::strlen source code''' on [[jplatform:utilities/string.php#cl-138|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
+ | * [[JString::strlen|Other versions of JString::strlen]] | ||
+ | {{SeeAlso:JString::strlen}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::strlen|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::strlen|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 51: | Line 49: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JString]][[Category:JString::strlen]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::strlen]]</noinclude> |
Revision as of 21:44, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JString::strlen[edit]
Description[edit]
UTF-8 aware alternative to strlen Returns the number of characters in the string (NOT THE NUMBER OF BYTES),.
Template:Description:JString::strlen [Edit Descripton]
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[edit]
- JString::strlen source code on BitBucket
- Class JString
- Subpackage Utilities
- Other versions of JString::strlen
Template:SeeAlso:JString::strlen [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />