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 <[email protected]> wrote:
> On Sun, Oct 23, 2016 at 4:59 AM, Yasuo Ohgaki <[email protected]> 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 > [email protected] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >
