Snack's 1967
/ /

XtScript Function: ucwords

Make the first character in each words to uppercase.

XtScript ucwords is a function that can replace the first character of each words in a string to uppercase and return the result.

<!--parser:xtscript-->
	call ucwords $val=...
<!--/parser:xtscript-->

Learn XtScript ucwords function from examples

Make all the first character in each words to uppercase.

- Code:
<!--parser:xtscript-->
	var $string = Do you want to learn XtScript together?
	var $uc_string = call ucwords $val=$string

	print Before: $string <br/>
	print After: $uc_string
<!--/parser:xtscript-->
- Result:
Before: Do you want to learn XtScript together?
After: Do You Want To Learn XtScript Together?