Knowledgebase
Where to translate Month and Day language, in PHP? I cant found options for this
Posted by basketmen, 04-03-2012, 05:42 PM | I can showing month and day in php, from this documentation http://php.net/manual/en/function.date.php
for example
i want to change it into my language
or it is best if can like this
i am using whm and cpanel, cant found options to translate this, maybe i need to edit some files in PHP configuration, but which one, please help guys
|
Posted by cgutier, 04-03-2012, 05:56 PM | You have to use setlocale() to set your language and then strftime() to echo the date.
This is an example:
For more info:
http://us2.php.net/manual/en/function.setlocale.php
http://us2.php.net/manual/en/function.strftime.php
|
|
Add to Favourites
Print this Article |
Also Read
iRacks (Views: 619)
Fastservers? (Views: 754)