Re: while() query

From: Date: Thu, 11 Apr 2002 15:43:23 +0000
Subject: Re: while() query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92598@lists.php.net to get a copy of this message
On Friday 12 April 2002 06:15, Caspar Kennerdale wrote: > This may be a baisc programming query, to which I dont have the ansa, > > but can you do a while () loop, but set a condition so that it misses one > ie > > $counter = -1; > while(++$counter <50){ > > do a task on all between 1 and 50 except on 39 > } $counter = -1; while(++$counter <50){ if ($counter == 39) { continue; } do your stuff; and some more stuff; etc; } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Your step will soil many countries. */

« previous php.general (#92598) next »