For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

ucfirst

Convert the first character of the given text to upper-case.  All other characters remain unchanged.

Also see the lcfirst and uc filters.

Availability

Availability

This filter was introduced in version 5.5.0, and is therefore not available for use with any earlier Interchange version.

Example

[filter ucfirst]kevin[/filter]

Results in:

Kevin

Source code

sub {
    use locale;
    if ($Scratch->{mv_locale}) {
        POSIX::setlocale(LC_CTYPE, $Scratch->{mv_locale});
    }
    return ucfirst(shift);
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Friday 13 July 2007 at 5:48 AM (EDT)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us