note 59655 added to function.date

From: Date: Mon, 12 Dec 2005 17:25:39 +0000
Subject: note 59655 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-100008@lists.php.net to get a copy of this message
To set the Date to another Language (e.g. Finnish), you can use switch() instead of 7 or ~30 if-Conditions: <?php switch(date("l")){ case ("Monday") echo "Maanantai"; case ("Tuesday") echo "Tiistai"; case ("Wednesday") echo "Keskiviikko"; case ("Thursday") echo "Torstai"; case ("Friday") echo "Perjantai"; case ("Saturday") echo "Lauantai"; case ("Sunday") echo "Sunnuntai"; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59655 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59655&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59655&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100008) next »