On Sun, Mar 15, 2015 at 10:07 PM, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:

> Hi Netroby,
>
> On Mon, Mar 16, 2015 at 12:03 PM, Netroby <hufeng1...@gmail.com> wrote:
>
> > Does the "in" support this kind of php code ?
> >
> > ```php
> > <?php
> > $arr = ['a', 'b', 'c'];
> > for ($v in $arr) {
> >     echo $v;
> > }
> >
> >
> > ```
> >
> > I know javascript has this kind of support
> >
> >
> >
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in
> >
>
> No. We have foreach for this.
> Shells support this syntax, too.
> It may be confusing for some users. Good point.
>


I had made this point earlier; not having it was not in particular a hurdle
for me but I did believe that if we added the in clause we could also
follow that type of for loop.

Reply via email to