note 51794 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 11 Jun 2006 11:34:10 +0000 |
| Subject: | note 51794 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114226@lists.php.net to get a copy of this message | ||
Note Submitter: kostya_r at hotmail dot com
----
I have created a simple script which calculates current week number of current month.
<?php
// Calculates current week number of the month
$week=(integer)date('W')-(integer)date('W', mktime(0, 0, 0, date('n'),
1, date('Y')));
?>