[nycphp-talk] loop
Adam Fields
fields at surgam.net
Thu Dec 19 21:44:38 EST 2002
On Thu, Dec 19, 2002 at 09:25:03PM -0500, Nasir Zubair wrote:
> How about using a boolean variable in a while loop.
>
> Instead of
>
> for(;;)
> [camera instructions]
>
> Use something along these lines:
>
> $run = true;
>
> While($run)
> {
> [camera instuctions]
> }
>
>
> Set $run to false under some condition to stop the loop (inside the
> loop).
You don't have to do that. You can use break inside the for loop to
get out.
--
- Adam
-----
Adam Fields, Managing Partner, fields at surgam.net
Surgam, Inc. is a technology consulting firm with strong background in
delivering scalable and robust enterprise web and IT applications.
http://www.adamfields.com
More information about the talk
mailing list