Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104163 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69634 invoked from network); 5 Feb 2019 12:43:35 -0000 Received: from unknown (HELO smtp.opensides.be) (195.154.20.141) by pb1.pair.com with SMTP; 5 Feb 2019 12:43:35 -0000 Received: from localhost (localhost [127.0.0.1]) by smtp.opensides.be (Postfix) with ESMTP id 6D7C32685B9 for ; Tue, 5 Feb 2019 10:24:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at opensides.be Received: from smtp.opensides.be ([127.0.0.1]) by localhost (smtp.opensides.be [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1zIIxEIFuY4T for ; Tue, 5 Feb 2019 10:24:38 +0100 (CET) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.opensides.be (Postfix) with ESMTPSA id 5CE0026853C for ; Tue, 5 Feb 2019 10:24:38 +0100 (CET) To: internals@lists.php.net Date: Tue, 05 Feb 2019 10:24:34 +0100 Message-ID: <8287536.rOMEj9xvlM@mcmic-probook> Organization: OpenSides User-Agent: KMail/5.2.3 (Linux/4.9.0-8-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [PHP-DEV] [VOTE] Making stdClass iterable From: come@opensides.be (=?ISO-8859-1?Q?C=F4me?= Chilliet) Hello, What is the usecase for this? The RFC does not explain what it would be useful for. json_decode already provides an option for getting arrays instead of object= s. All in all the RFC does not provide enough information. As I understand it = if stdClass is Traversable then all objects are, no? C=F4me