Re: 2 dates, difference in days AARGH!!

From: Date: Thu, 12 Dec 2002 09:31:30 +0000
Subject: Re: 2 dates, difference in days AARGH!!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-127968@lists.php.net to get a copy of this message
"Curtis Gordon" <sundogcurt@netscape.net> wrote in message news:3DF79F72.4060408@netscape.net... > <?$today = getdate();?> > <?$now_date = mktime (0,0,0,$today['mon'],$today['mday'],$today['year']);?> Why not use $now_date = mktime(0,0,0,date('m'),date('d'),date('Y')); ? Also, do you really use <? ?> on each line? Wouldn't that just slow down processing as PHP jumps in & out of "code mode?" - Steve Yates - When you do a good deed get a receipt, in case heaven is like the IRS. ~ Taglines by Taglinator - www.srtware.com ~

« previous php.general (#127968) next »