note 53494 added to function.getdate
| From: | juanmarch at yahoo dot es | Date: | Fri, 03 Jun 2005 10:40:59 +0000 |
| Subject: | note 53494 added to function.getdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89851@lists.php.net to get a copy of this message | ||
If you want return day of week in european mode (beggining the week in Monday), you can use this
function:
function dsemana($f) {
$f=getdate($f);
$d=$f['wday'];
if($d==0) $d=7;
return $d;
}
Enjoy!
----
Manual Page -- http://www.php.net/manual/en/function.getdate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53494
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53494&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53494&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53494&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53494&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53494&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53494&report=yes
Search -- http://master.php.net/manage/user-notes.php