note 93124 deleted from function.date by tularis

From: Date: Thu, 09 Feb 2012 20:56:06 +0000
Subject: note 93124 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185983@lists.php.net to get a copy of this message
Note Submitter: Aura@The World ---- Get names of days: <?php $tz = date_default_timezone_get(); date_default_timezone_set('UTC'); for($i=0; $i<7; $i++) echo date('D', mktime(12, 0, 0, 1, $i+4, 1970)) . '<br />'; date_default_timezone_set($tz); ?> Change 'D' to 'l' (lowercase 'L') for full names. Change $i+4 to $i+5 if you want Monday to be the first day of the week.

« previous php.notes (#185983) next »