Re: Fatal error: isset(CONST_ARRAY['key']) PHP 5.6
| From: | S.A.N | Date: | Mon, 25 May 2015 13:09:42 +0000 |
| Subject: | Re: Fatal error: isset(CONST_ARRAY['key']) PHP 5.6 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86377@lists.php.net to get a copy of this message | ||
> It is by design; the documentation states[1]:
>
> | isset() only works with variables as passing anything else will
> | result in a parse error.
>
> [1]
>
> <http://php.net/manual/en/function.isset.php#refsect1-function.isset-notes>
Ok, the way it works in PHP 7.
But the speed of access to const the array (ARR['key']) is 5 times
slower, in comparison with the variable ($arr['key']) :(