Re: Making stdClass iterable

From: Date: Mon, 14 Jan 2019 14:52:30 +0000
Subject: Re: Making stdClass iterable
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-103731@lists.php.net to get a copy of this message
On Mon, 14 Jan 2019 at 13:23, Craig Duncan <php@duncanc.co.uk> wrote: > What about an array is more iterable than a stdClass object? > An array is the structure PHP provides to represent a list, or an ordered collection of arbitrary key-value pairs; an object, whether stdClass or otherwise, is neither of these things. I would instead ask: what about a stdClass object is more iterable than an object created from a user-defined class? Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#103731) next »