H
H
hollanditkzn2017-09-26 09:12:32
Yii
hollanditkzn, 2017-09-26 09:12:32

How can I capitalize the first letter of the month?

The situation is this, I added a line to php so that the months are displayed in Russian extension=php_intl.dll
But when translating into Russian, the months began to be written in lowercase, that is, instead of September 26, September 26 is written. I have an option to use ucfirst, but then I will always have to write it where the month is used in this form. The only question is, can it be somehow simplified and written somewhere so that the first letter in upper case is always fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Gogolinsky, 2017-09-26
@hollanditkzn

Don't style in php, style in CSS
text-transform: capitalize

E
Evgeny, 2017-09-26
Lubyanoy @arswarog

Maybe strtr ? And just replace the words?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question