cross

If your site is in a different language than English then you must need to display date and time in that language in your site.It is very easy to display date in any language with php. You can do this by using str_replace() function.All you have to do replace the numbers, months and day names with your wanted language’s words. Str_replace() function is used to replace parts of a PHP string with new value. I am going to create a function named translated_date_and_time() . . . .

Advertisement




Tweets

Get Emails