Re: [RFC] Convert numeric keys in object/array casts
| From: | Yasuo Ohgaki | Date: | Sat, 22 Oct 2016 20:46:55 +0000 |
| Subject: | Re: [RFC] Convert numeric keys in object/array casts | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96549@lists.php.net to get a copy of this message | ||
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