Core Function UC
From Sputnik Wiki
(Difference between revisions)
Line 22: | Line 22: | ||
$result = UC("testing"); | $result = UC("testing"); | ||
Println("Result:" , $result); // Prints TESTING | Println("Result:" , $result); // Prints TESTING | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Modify the string in place | ||
+ | |||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | $value = "testing"; | ||
+ | Println($value); // Prints testing | ||
+ | $value->uc(); // Modify the string in place | ||
+ | Println($result); // Prints TESTING | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Revision as of 21:43, 25 August 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($result); // Prints TESTING