note 38804 deleted from function.date by derick
| From: | derick@php.net | Date: | Sat, 22 May 2004 13:55:58 +0000 |
| Subject: | note 38804 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69958@lists.php.net to get a copy of this message | ||
Note Submitter: cedricbilliet@hotmail.com
----
here is a script that outputs the dates of every sundays in a given year...
<?php
for ($j=1;$j<13;$j++) {
for ($i=1;$i<32;$i++) {
$mk = mktime(0, 0, 0, $j, $i, 2004);
$datex = date ("l", $mk);
$daterest = date ("j/n/Y", $mk);
if ($datex == "Sunday") {
echo $datex.">>>>>".$daterest."<br>";
}
}
}
?>
Hope it may help someone...