Re: Suggested change: change priority of new and ->
| From: | Pedro Lacerda | Date: | Thu, 15 Feb 2018 09:21:00 +0000 |
| Subject: | Re: Suggested change: change priority of new and -> | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101876@lists.php.net to get a copy of this message | ||
Great contribution, very sensible even if subtile.
Is the kind of change that improve a lot but cause some trouble to people
used to the old way or when upgrading legacy codebases.
2018-02-15 5:32 GMT-03:00 Stephen Reay <php-lists@koalephant.com>:
>
> > On 9 Feb 2018, at 01:38, Mcmuffin Mcguffin <mcmuffinmcguffin@gmail.com>
> wrote:
> >
> > new $var[0]
>
> Is that creating an instance of the class name stored in the 0th index of
> the array $var or is it creating an instance of the class name stored in
> $var and accessing the 0th index using ArrayAccess?
>
> Cheers
>
> Stephen
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Atenciosamente,
Pedro Lacerda