Months name is not showing in German in PHP?

Hi I am trying to display months name in PHP but it is not showing in German language in MYSQL, my date is showing as 2021-01-23 which I converted into months by using PHP function Month(), MONTH(beginn)

PHP Code -

setlocale(LC_ALL, 'de_DE.utf8');
echo  (date("F",strtotime($month)));

Read more here:

Content Attribution

This content was originally published by Christina leonel at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: