|
Posted by Curtis on 01/30/07 02:48
On Jan 29, 6:46 pm, "Curtis" <dye...@gmail.com> wrote:
> function daysUntilNow($month, $day, $year, $format = 'Y-m-d') {
> $d = array();
> $ts = 0;
>
> while ( ($ts = mktime(0,0,0,$month,$day,$year)) < time() ){
> $ts = mktime(0,0,0,$month,$day,$year);
> $d[] = date($format,$ts);
> $day++; // increment days
> }
> return $d;
>
> }
Grr, Google Groups borked my code. Pretend there's a closing brace for
the function.
[Back to original message]
|