You can build an iterator to do this for you, doesn't need to be in the
language IMHO
On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote:
> Hi internals,
>
> during my current work I had an idea for shorter array iteration with
> foreach. I haven’t seen such a syntax until now, but I think
On Fri, Jun 28, 2013 at 1:36 AM, Pierre du Plessis
wrote:
> On Thu, Jun 27, 2013 at 7:29 PM, Tjerk Anne Meesters wrote:
>
>> On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis
>> wrote:
>>
>> > On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter
>> > wrote:
>> >
>> > > On Thu, 2013-06-27 at 16:58 +
On Thu, Jun 27, 2013 at 7:29 PM, Tjerk Anne Meesters wrote:
> On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis
> wrote:
>
> > On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter
> > wrote:
> >
> > > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote:
> > > > On Thu, Jun 27, 2013 at 4:10 PM, Ch
On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis
wrote:
> On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter
> wrote:
>
> > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote:
> > > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller > >wrote:
> > >
> > > > The new syntax could make it shorte
On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter
wrote:
> On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote:
> > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller >wrote:
> >
> > > The new syntax could make it shorter and faster to write... but maybe
> it's
> > > a bit too confusing?
> > >
2013/6/27 Johannes Schlüter :
> On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote:
>> On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote:
>>
>> > The new syntax could make it shorter and faster to write... but maybe it's
>> > a bit too confusing?
>> >
>> > $count = 0;
>> > foreach ($array
On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote:
> On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote:
>
> > The new syntax could make it shorter and faster to write... but maybe it's
> > a bit too confusing?
> >
> > $count = 0;
> > foreach ($array as $key => $innerArray as $innerKey =
On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote:
> The new syntax could make it shorter and faster to write... but maybe it's
> a bit too confusing?
>
> $count = 0;
> foreach ($array as $key => $innerArray as $innerKey => $value) {
> $count += $value;
> // and do something with $k
On Thu, Jun 27, 2013 at 5:27 PM, Ralf Lang wrote:
> On 27.06.2013 16:10, Christian Stoller wrote:
> > Hi internals,
> >
> > during my current work I had an idea for shorter array iteration with
> foreach. I haven’t seen such a syntax until now, but I think it is easy to
> understand ;-)
> >
> > M
On 27.06.2013 16:10, Christian Stoller wrote:
> Hi internals,
>
> during my current work I had an idea for shorter array iteration with
> foreach. I haven’t seen such a syntax until now, but I think it is easy to
> understand ;-)
>
> Maybe you know the case where you have to iterate over all va
2013/6/27 Florin Patan
> On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller
> wrote:
> > Hi internals,
> >
> > during my current work I had an idea for shorter array iteration with
> foreach. I haven’t seen such a syntax until now, but I think it is easy to
> understand ;-)
> >
> > Maybe you kno
2013/6/27 Kingsquare.nl - Robin Speekenbrink
> I'd thought this would have been `solved` by allowing the list statement in
> foreach (
>
> http://nl3.php.net/manual/en/control-structures.foreach.php#control-structures.foreach.list
> )
>
> Doesnt that solve your problem already?
>
This is only us
I'd thought this would have been `solved` by allowing the list statement in
foreach (
http://nl3.php.net/manual/en/control-structures.foreach.php#control-structures.foreach.list
)
Doesnt that solve your problem already?
Kind regards,
Robin Speekenbrink
2013/6/27 Florin Patan
> On Thu, Jun 27
On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller wrote:
> Hi internals,
>
> during my current work I had an idea for shorter array iteration with
> foreach. I haven’t seen such a syntax until now, but I think it is easy to
> understand ;-)
>
> Maybe you know the case where you have to iterate
Hi internals,
during my current work I had an idea for shorter array iteration with foreach.
I haven’t seen such a syntax until now, but I think it is easy to understand ;-)
Maybe you know the case where you have to iterate over all values of a 2D (or
more) array:
$count = 0;
foreach ($array a
15 matches
Mail list logo