Formater les date d’un tableau

Author:

 date
Download

<?php
  setlocale (LC_TIME, 'fr_FR.utf8','fra');
  $mydates = array('20011-01-01', '2000-15-03', '2005-05-22',
  '2011-05-23', '2005-12-31');

  foreach($mydates as $mydate)
  {
    print strftime("%A %d %B %Y %T", strtotime($mydate)). "<br />";
    }
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


− 1 = seven