XtScript Function: ucwords

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

  call ucwords $val=...

Learn XtScript ucwords function from examples

Change all the first character in each words to uppercase.

    var $string = Do you want to learn XtScript together?
    var $uc_string = call ucwords $val=$string
    print Before: $string <br/>
    print After: $uc_string
Before: Do you want to learn XtScript together?
After: Do You Want To Learn XtScript Together?

By SiDar

Webmaster Assistant and Editor at

SiDar enjoying himself listening J-pop genre music and playing games, especially old school games. Sometimes he also found watching anime and reading manga are interesting when his fellow author recommend him some good titles.

Leave a Reply

Your email address will not be published. Required fields are marked *