XtScript functions
ucwords
Uppercase the first character of each word in a string
Syntax
[var $... = ]call ucwords $val=...[...] optional · ... your value
Example
<!--parser:xtscript-->
var $input = foo bar
var $output = call ucwords $val=$input
print input = $input<br />
print output = $output
<!--/parser:xtscript-->
Copy as text
input = foo bar
output = Foo Bar
Related