RE: [PHP] First day of the month

From: Date: Tue, 03 Aug 2004 18:32:00 +0000
Subject: RE: [PHP] First day of the month
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192580@lists.php.net to get a copy of this message
> I was going to suggest; > > $dayofweek = date("D",strtotime(date("Y-m-01"))); > > Warren Vail > > That probably works but if you look, you're calling a function inside a function that's inside another function. $dayofweek = date("D", mktime(0,0,0,$m,1,$y)); A little more simpler. BTW, "D" or "l" pretty much do the same thing. It depends on whether you wan Mon or Monday. D = abbrviated name l = full name -- --Matthew Sims --<http://killermookie.org>

« previous php.general (#192580) next »