Re: [RFC] Iterable

From: Date: Sun, 03 Jul 2016 16:50:43 +0000
Subject: Re: [RFC] Iterable
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-94366@lists.php.net to get a copy of this message
Hi Stas, > On Jul 2, 2016, at 7:00 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote: > > Do you mean that this code: > > $a = json_decode('{"a": 1, "b": 2, "c": 3}'); > foreach($a as $b) { > var_dump($b); > } > > will no longer work, or that it will still work, but stdClass would not > be instanceof Iterable? That code will continue to work just as it always has. stdClass will not be accepted by the iterable type. Aaron Piotrowski

« previous php.internals (#94366) next »