Difference between revisions of "JString::trim"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::trim|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::trim|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function trim ( |
+ | $str | ||
+ | $charlist=FALSE | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 30: | Line 32: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' | |
− | + | * '''Defined''' on line 452 of libraries/joomla/utilities/string.php | |
− | |||
− | libraries/joomla/utilities/string.php | ||
− | |||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JString::trim source code''' on [[jplatform:utilities/string.php#cl-444|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
+ | * [[JString::trim|Other versions of JString::trim]] | ||
+ | {{SeeAlso:JString::trim}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::trim|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::trim|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 50: | Line 51: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JString]][[Category:JString::trim]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::trim]]</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::trim[edit]
Description[edit]
UTF-8 aware replacement for Strip whitespace (or other characters) from the beginning and end of a string Note: you only need to use this if you are supplying the charlist optional arg and it contains UTF-8 characters.
Template:Description:JString::trim [Edit Descripton]
public static function trim (
$str
$charlist=FALSE
)
Parameter | Type | Default | Description |
---|---|---|---|
$str | |||
$charlist | FALSE |
- Returns
- Defined on line 452 of libraries/joomla/utilities/string.php
See also[edit]
- JString::trim source code on BitBucket
- Class JString
- Subpackage Utilities
- Other versions of JString::trim
Template:SeeAlso:JString::trim [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />