Core Function LC
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> LC( <expression> ) </pre> === Description === Returns string in all lower case. === Parameters === ==== expression ==== The string to use. === Return Value === Upper...") |
(→Example) |
||
Line 22: | Line 22: | ||
$result = LC("TESTING"); | $result = LC("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->lc(); // Modify the string in place | ||
+ | Println($value); // Prints testing | ||
+ | // 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
LC( <expression> )
Contents |
Description
Returns string in all lower case.
Parameters
expression
The string to use.
Return Value
Uppercase string.
Example
$result = LC("TESTING"); Println("Result:" , $result); // Prints testing
Modify the string in place
$value = "TESTing"; Println($value); // Prints TESTing $value->lc(); // Modify the string in place Println($value); // Prints testing // There is no return value if you do this