Goto main content

ucfirst

Make a string's first character uppercase.

UCFIRST

NAME

ucfirst - Make a string’s first character uppercase.

SYNOPSIS

ucfirst(string)

PARAMETERS

string
The input string.

RETURN

Returns the resulting string.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

in:  res={_{ucfirst("one sample")}}.
out: res=One sample.

in:  res={_{ucfirst("óne sample")}}.
out: res=Óne sample.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.