Actions

API17

Difference between revisions of "JString::ucwords"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JString::ucwords|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JString::ucwords|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JString::ucwords ($str)
+
public static function ucwords ($str)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 25: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string with first char of each word uppercase
string with first char of each word uppercase
+
* '''Defined''' on line 488 of libraries/joomla/utilities/string.php
===Defined in===
+
libraries/joomla/utilities/string.php (line 507)
+
* see source code in [[jplatform:utilities/string.php#cl-507|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JString::ucwords source code''' on [[jplatform:utilities/string.php#cl-480|BitBucket]]
 +
* {{JVer|11.1}} Class [[JString/11.1|JString]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JString::ucwords|Other versions of JString::ucwords]]
 +
{{SeeAlso:JString::ucwords}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JString::ucwords|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JString::ucwords|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JString/11.1|JString]]
+
===User contributed notes===
* [[JString::ucwords|Other versions of this method]]
+
{{SeeAlso:JString::ucwords}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 46: Line 43:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JString]][[Category:JString::ucwords]]</noinclude>
 
<noinclude>[[Category:JString]][[Category:JString::ucwords]]</noinclude>

Revision as of 21:44, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JString::ucwords

Description

UTF-8 aware alternative to ucwords Uppercase the first character of each word in a string.

Description:JString::ucwords [Edit Descripton]

public static function ucwords ($str)
Parameter Type Default Description
$str string
  • Returns string with first char of each word uppercase
  • Defined on line 488 of libraries/joomla/utilities/string.php

See also

SeeAlso:JString::ucwords [Edit See Also]

User contributed notes

<CodeExamplesForm />