title: PHP date - get name of the months in local language
body: <p>I have this part of the function, which gives me name of the months in English. How can I translate them to my local language (Serbian)?</p>
  
  <pre><code>$month_name = date('F', mktime(0, 0, 0, $i));
  </code></pre>
  
  <p>Where <code>$i</code> is the number of the month (values 1 - 12). See also <a href="https://www.php.net/manual/en/function.mktime.php" rel="noreferrer">PHP:mktime</a>.</p>