Afficher les date en plusieurs formats

Author:

 date
Download

<?php

  $time = time();
  $formats = array(
                    'U',
                    'r',
                    'c',
                    'l, F jS, Y, g:i A',
                    'H:i:s D d M y',
                    'm/j/y g:i:s a O (T)'
                  );

  foreach($formats as $format)
  {
    print ("<p><b>$format</b>: "
    . date($format)). "</p><br />";
  }
?>

Leave a Reply

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


3 + six =