API17

Difference between revisions of "JString::trim"

From Joomla! Documentation

m (→‎See also: moving preparation)
m (clean up)
Line 4: Line 4:
 
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.  
 
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.  
  
{{Description:JString::trim}}
+
{{subst:Description:JString::trim}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JString::trim|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<source lang="php">
 
<source lang="php">
 
public static function trim (
 
public static function trim (
Line 39: Line 37:
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
 
* [[API17:JString::trim|Other versions of JString::trim]]
 
* [[API17:JString::trim|Other versions of JString::trim]]
{{SeeAlso:JString::trim}}
+
{{subst:SeeAlso:JString::trim}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JString::trim|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />

Revision as of 11:12, 24 March 2017

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.

Joomla 11.1 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.

{{subst:Description:JString::trim}}

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]

{{subst:SeeAlso:JString::trim}}

User contributed notes[edit]

<CodeExamplesForm />