Friday, August 2, 2002, 10:52:14 PM, you wrote:
JB> Good morning!

JB> I need to subtract months by their abbreviated month name, so shouldn't this
JB> work?

JB> print(date("M", mktime(date("M")-$i));

JB> and if I loop;

JB> Aug
JB> Jul
JB> Jun
JB> May
JB> ........
Does this help...

$now = time();
$i = 36;
while($i > 0){
        echo date('M-Y',$now).'<br>';
        $now = strtotime('-1 month',$now);


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to