ACCES INTERZIS | blog de programare si securitate IT


<?php
$day = array('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata');
$mounth = array(NULL, 'Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulile', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie');

echo $day[date('w')].date(', j ').$mounth[date('n')].date(' Y, H:i:s');
?>

The above PHP script generates the current date in a language other than English. As everybody knows, the PHP function date() returns values only in English language which sometimes might be pretty disturbing. But this PHP script fixes entirely this issue.

Post to Twitter Tweet This Post

No related posts.

Posted By: admin
Last Edit: Feb 22, 2010, 15:51

Tags
Tags:
Categories: programming


 

Responses to this post » (None)

 
Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>