capitalize

1.0 1.1 1.2 1.3

Uppercases the first letter of each word in the given string

<?php
capitalize(string $value [, bool $numwords = false ] )
  • value: string to capitalize
  • numwords: whether or not to capitalize words with numbers

Examples

Example #1

index.tpl
{capitalize('this is a string what2')}

The above example will output:

This Is A String what2