Re: simple problem

From: Date: Wed, 04 Sep 2002 19:05:53 +0000
Subject: Re: simple problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115218@lists.php.net to get a copy of this message
Hi, On every loop, just put the text you want to add to a variable. like if($i == 0) echo "first print"; elseif($i == 1) echo "second"; elseif($i == 2) echo "third"; etc... -- Nicos - CHAILLAN Nicolas nicos@php.net www.WorldAKT.com - Hébergement de sites Internet "Cirkit Braker" <cirkitbraker@hotmail.com> a écrit dans le message de news: 20020904190200.6836.qmail@pb1.pair.com... > what would be the best, most efficient way to print something every three > times a loop runs > > for ($i=0; $i<$num_products; $i++) > { > echo "something"; > } > > this happens every time it runs and has to stay that way but every three > times i want to print additional info. > > Any help appreciated. > >

« previous php.general (#115218) next »