<?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.
No related posts.