logo
Home XtGem- Templates- XtScript- bottom
XtGemmanual

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

Output reload

input = foo bar
output = Foo Bar

Related

lcfirst ucfirst strtolower strtoupper

XtGem manual · all sections

Powered by XtGem
About us Contact Forum top