Core Function UC
From Sputnik Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 30: | Line 30: | ||
Println($value); // Prints testing | Println($value); // Prints testing | ||
$value->uc(); // Modify the string in place | $value->uc(); // Modify the string in place | ||
− | Println($ | + | Println($value); // Prints TESTING |
// There is no return value if you do this | // There is no return value if you do this | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Revision as of 01:28, 12 September 2013
UC( <expression> )
Contents |
Description
The string to use.
Parameters
expression
The string to evaluate.
Return Value
Uppercase string.
Example
$result = UC("testing"); Println("Result:" , $result); // Prints TESTING
Modify the string in place
$value = "testing"; Println($value); // Prints testing $value->uc(); // Modify the string in place Println($value); // Prints TESTING // There is no return value if you do this