Re: for loop trouble

From: Date: Sun, 17 Sep 2000 20:01:35 +0000
Subject: Re: for loop trouble
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17082@lists.php.net to get a copy of this message
Jeff Lacy wrote: > > Hello. I am having trouble with a "simple" for loop. Can anyone tell me > what I am doing wrong? > > <?php > for ($i=0; date ("w", mktime (0,0,0,date("m") , date("d")+$i, > date("Y"))) != > 0; $i++;) { rem this ^ semicolon? Mike D. > echo "hi"; > } > ?> > > The date ("w", mktime (0,0,0,date("m") , date("d")+$i, > date("Y"))) will > work by itself, but just not in the above loop. Thank you in advance for > all of your help! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#17082) next »