API17:JString::ucwords
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
| (One intermediate revision by one user not shown) | |||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::ucwords|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::ucwords|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function ucwords ($str) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 25: | Line 24: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''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 |
| − | + | ||
| − | libraries/joomla/utilities/string.php | + | |
| − | + | ||
===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> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 45: | 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
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.
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
-
JString::ucwords source code on BitBucket
-
Class JString
-
Subpackage Utilities
- Other versions of JString::ucwords
SeeAlso:JString::ucwords [Edit See Also]
User contributed notes
<CodeExamplesForm />
