Q:

Write a PHP script to get the current date in Italian

0

Write a PHP script to get the current date in Italian

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
$old_Locale = setlocale(LC_TIME, 'it_IT');
echo  strftime("Today is %a on %b %d, %Y")."\n";
setlocale(LC_TIME, $old_Locale);
?>

Sample Output:

Today is Tue on Jul 11, 2017

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now