note 53519 deleted from function.date by bobby

From: Date: Thu, 07 Sep 2006 17:32:35 +0000
Subject: note 53519 deleted from function.date by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116846@lists.php.net to get a copy of this message
Note Submitter: justin at drunkatgt dot com ---- In response to pmcdevitt(at)cesales.com: If you just want to find out what last month was, try $lastmonth=mktime(0,0,0,date("m")-1,1,date("Y")); $lastmonth= date("M", $lastmonth); There is no reason to use the day of the month to determine the revious month. And every month has a 1st. You could even through an arbitrary year in there to save a fraction of a calculation.

« previous php.notes (#116846) next »