API17:JString::ucfirst
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::ucfirst|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::ucfirst|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function ucfirst ($str) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 25: | Line 24: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' string with first character as upper case (if applicable) | |
| − | string with first character as upper case (if applicable) | + | * '''Defined''' on line 474 of libraries/joomla/utilities/string.php |
| − | + | ||
| − | libraries/joomla/utilities/string.php | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JString::ucfirst source code''' on [[jplatform:utilities/string.php#cl-466|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
| + | * [[JString::ucfirst|Other versions of JString::ucfirst]] | ||
| + | {{SeeAlso:JString::ucfirst}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::ucfirst|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::ucfirst|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::ucfirst]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::ucfirst]]</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::ucfirst
Description
UTF-8 aware alternative to ucfirst Make a string's first character uppercase.
Description:JString::ucfirst [Edit Descripton]
public static function ucfirst ($str)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $str | string |
- Returns string with first character as upper case (if applicable)
- Defined on line 474 of libraries/joomla/utilities/string.php
See also
-
JString::ucfirst source code on BitBucket
-
Class JString
-
Subpackage Utilities
- Other versions of JString::ucfirst
SeeAlso:JString::ucfirst [Edit See Also]
User contributed notes
<CodeExamplesForm />
