N
N
neytan2018-04-10 12:27:51
PHP
neytan, 2018-04-10 12:27:51

How to display the name of the next month in php in Russian?

Good afternoon, how to display the name of the next month in Russian. For example, now it is April, it is necessary to display May, next month - June, in June - July.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-04-10
@neytan

function mySuperPuperNextMonth() {
  return [1=>'февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря','января'][date('n')];
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question