S
S
smoky-jo2019-09-12 05:15:58
PHP
smoky-jo, 2019-09-12 05:15:58

How to capitalize the first letter of the first word in smarty?

Hello, does anyone know how to capitalize the first letter of the entire output? Let's say I have {$a} which displays the Moscow region, I apply the capitalize modifier, but it does this: Moscow Region, a regular expression is probably required, but which one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-09-12
@smoky-jo

Use the pseudo element :first-letter
It changes the style of the first letter
of the description

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question