Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103731 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53013 invoked from network); 14 Jan 2019 18:17:02 -0000 Received: from unknown (HELO mail-io1-f43.google.com) (209.85.166.43) by pb1.pair.com with SMTP; 14 Jan 2019 18:17:02 -0000 Received: by mail-io1-f43.google.com with SMTP id l14so17763966ioj.5 for ; Mon, 14 Jan 2019 06:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zkj9QnMLlXnGZtoXfy9llQl9PgJdNwSU73hQORI9Y54=; b=EWr5scxQIjNdpqKKYkAjEdtmA/1GRthhO+MQIFgHPbJLgWhwtRlinCLjrcuPwoFnLq FunWw4b8eQTrR5ZGYVG/e2YseBoysm/wBEdBezBGcVgZgbf4ab3vTfB9oeEfvKJwBjTl 9ZyvIdRp+ncKnwH4T74oAgRR6FGVLtgAWh5bfAVvCzV4McUzTc0z2g3j6NR91Z4V7TCY iCrgu6Z5SyIxLtQdyrsuyYTC1dRMrxeg1egKtKhYTHbU0qJBYI97bmOaxLrkV6hOt+0Z O+W5M3/30We78uRaIChEzjh0Em6z48AouQRwoN3JLFe8TwObot091i6x9ynhj/0HI0WA iPDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zkj9QnMLlXnGZtoXfy9llQl9PgJdNwSU73hQORI9Y54=; b=l0nRG8NsZVk36e1xViBaqV9DXo79e/c3haHH5D/Bn617PYaWR1hEbtsHsgcWBFD8u6 BnPRQcek9D0q9fTgsoMhdNNa3AdAKGw/vp8KU231mAsjxc58rQI7HISBQVFQU4AFZAB2 /3vagrffKiGW5xiMF4MmiYoYGJWwtNw1TumNjcjaLR43+JTpXjqa9DNltj0Fagb6sXeT TQTULy3oNOT6wuDg6uY1nOXqO15hv6H7IBNzLz/azWp4JLi/QzgSYorfiV+8lWBk6dS2 utefeb0N9lFrNak8aWEtU2+Pd1D7OseVDupuzQdFMVwR4yUb5i/S7TEnC6FSJohG+Yg1 3qUw== X-Gm-Message-State: AJcUukewwcQW9cSUWQCEEz8dYnuSN+r4LdUYh4RKUE2XdffQVwXXXIov 2KB5Vlhcfs0fum5t9ulYdPgZItKSWJqD4b5pBQE= X-Google-Smtp-Source: ALg8bN4hezqNyWKCPKXDeJM30bkcIRH9vQTWhcJXnuMvkex0RYtYKosADHD4O4sE19h7/lB5Y/TUPOmIBmuimIP8G/4= X-Received: by 2002:a5d:8946:: with SMTP id b6mr15138093iot.231.1547477561420; Mon, 14 Jan 2019 06:52:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 14 Jan 2019 14:52:30 +0000 Message-ID: To: Craig Duncan Cc: Dan Ackroyd , Internals Content-Type: multipart/alternative; boundary="00000000000058afee057f6c32d3" Subject: Re: [PHP-DEV] Making stdClass iterable From: rowan.collins@gmail.com (Rowan Collins) --00000000000058afee057f6c32d3 Content-Type: text/plain; charset="UTF-8" On Mon, 14 Jan 2019 at 13:23, Craig Duncan 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] --00000000000058afee057f6c32d3--