I am creating a MySQL + PHP script where user can configure lanuage based formates
If you mean already built-in in php, yes there is a standard available. It works with locales. You can use the
setlocale() function, to set the current locale, which has an impact on different php functions, like
Get a closer look here.
But be warned. The output is not always what you would expect, because it is not ISO compliant. There has been a long discussion about the locales and their impact on date functions, but in the end they decided to stay POSIX compliant, which is not ISO compliant.