[nycphp-talk] loop
FB`
fb at intldef.org
Thu Dec 19 19:20:26 EST 2002
It just has an empty starting and ending conditions and an empty step action
e.g. for ($i=0;$i<10;$i++) with both conditions and instruction taken out...
i didn't even know it was possible.
FB`
----- Original Message -----
From: "Brian" <brian at preston-campbell.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Thursday, December 19, 2002 7:03 PM
Subject: Re: [nycphp-talk] loop
> Sure it's an infinite loop, that is exactly what I am using it for. I
found
> it in use in another script and put it in use. I'm more interested in the
> nuts and bolts. What is the significance of the ;; operator, if it is in
> fact an operator? There is nothing that I could find in the docs.
>
> Brian
>
>
> On Thursday 19 December 2002 05:53 pm, Oktay Altunergil wrote:
> > It's an infinite loop.. you could write it with while too.. .. are you
> > asking something else?
> >
> > oktay
> >
> > On Thu, 19 Dec 2002 16:27:15 -0500
> >
> > Brian <brian at preston-campbell.com> wrote:
> > > I am currently using a script to move a webcam at certain time
intervals.
> > > The script never times out and uses the following to run
indefinitely:
> > >
> > > for (;;) {
> > > [camera instuctions]
> > > }
> > >
> > > Anyone know the principal behind this snippet and why it works? I
have
> > > not been able to find any information on the subject.
> > >
> > > Brian
> >
> >
>
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>
>
More information about the talk
mailing list