|
Posted by Rik on 01/30/07 05:38
Curtis <dyer85@gmail.com> wrote:
> On Jan 29, 6:46 pm, "Curtis" <dye...@gmail.com> wrote:
>> function daysUntilNow($month, $day, $year, $format =3D 'Y-m-d') {
>> $d =3D array();
>> $ts =3D 0;
>>
>> while ( ($ts =3D mktime(0,0,0,$month,$day,$year)) < time() ){
>> $ts =3D mktime(0,0,0,$month,$day,$year);
>> $d[] =3D date($format,$ts);
>> $day++; // increment days
>> }
>> return $d;
>>
>> }
>
> Grr, Google Groups borked my code. Pretend there's a closing brace for=
> the function.
There is in real newsreaders :P
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|