Skip to content
Advertisement

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 –

JavaScript

Advertisement

Answer

Try this

JavaScript

Convert June to Juni

Edit: some characters in German are utf8 enncoded utf8_encode function solve it. Like März

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement