note 52356 added to function.date

From: Date: Thu, 28 Apr 2005 15:30:26 +0000
Subject: note 52356 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-88699@lists.php.net to get a copy of this message
For french translation : **** this will be explain in french **** Voici le code : function LaDate() { $jourSemaine = array("Mon"=>"Lundi","Tue"=>"Mardi", "Wed"=>"Mercredi","Thu"=>"Jeudi","Fri"=>"Vendredi", "Sat"=>"Samedi","Sun"=>"Dimanche"); $moisAnnee = array("erreur","janvier","février", "mars","avril","mai","juin","juiller","août", "septembre","octobre","novembre","decembre"); return $jourSemaine[date("D")].", le " .date("d")." ".$moisAnnee[date("n")]." ".date("Y"); } c'est une fonction retour donc vous devez laissez dans une variable ou la printf ou echo. elle donne une date Francophone : Jeudi, le 28 avril 2005 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52356 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52356&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52356&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52356&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52356&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52356&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52356&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88699) next »