Re: [RFC] Convert numeric keys in object/array casts
| From: | Davey Shafik | Date: | Sun, 23 Oct 2016 10:54:10 +0000 |
| Subject: | Re: [RFC] Convert numeric keys in object/array casts | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96555@lists.php.net to get a copy of this message | ||
This has been the case since 4.3 at the least: https://3v4l.org/bjZ4d
On Sat, Oct 22, 2016 at 22:48 Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> On Sun, Oct 23, 2016 at 4:59 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> 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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>