Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96549 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20362 invoked from network); 22 Oct 2016 20:47:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2016 20:47:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:50709] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/4A-28528-170DB085 for ; Sat, 22 Oct 2016 16:47:46 -0400 Received: (qmail 28625 invoked by uid 89); 22 Oct 2016 20:47:42 -0000 Received: from unknown (HELO mail-qt0-f181.google.com) (yohgaki@ohgaki.net@209.85.216.181) by 0 with ESMTPA; 22 Oct 2016 20:47:42 -0000 Received: by mail-qt0-f181.google.com with SMTP id q7so108502861qtq.1 for ; Sat, 22 Oct 2016 13:47:41 -0700 (PDT) X-Gm-Message-State: ABUngvdbLrGhhgWUMXicrWaXRHKw7QyQi/8MrrCOz3BaZ23jrQeexxT8Xrb6bggaSlu1qrjrx23mlyzZkhtqyw== X-Received: by 10.200.54.144 with SMTP id a16mr7689667qtc.126.1477169255668; Sat, 22 Oct 2016 13:47:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.22.38 with HTTP; Sat, 22 Oct 2016 13:46:55 -0700 (PDT) In-Reply-To: References: <59.D6.28528.0B0AA085@pb1.pair.com> Date: Sun, 23 Oct 2016 05:46:55 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Andrea Faulds Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Convert numeric keys in object/array casts From: yohgaki@ohgaki.net (Yasuo Ohgaki) On Sun, Oct 23, 2016 at 4:59 AM, Yasuo Ohgaki wrote: > Numeric key name must be string? > > $obj->{'0'} = 1; > > or could be like (Without quotes) > > $obj->{0} = 1; It seems variables can be numeric now. https://3v4l.org/bjZ4d Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net