Core Function UC

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 31: Line 31:
 
$value->uc(); // Modify the string in place
 
$value->uc(); // Modify the string in place
 
Println($result); // Prints TESTING
 
Println($result); // Prints TESTING
 +
// There is no return value if you do this
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Revision as of 01:27, 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($result); // Prints TESTING
// There is no return value if you do this
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox