S.A.N wrote: > <?php > > const CONST_ARRAY = > [ > 'key' => 'value' > ]; > > isset(CONST_ARRAY['key']); // Fatal error: Cannot use isset() on the > result of an expression (you can use "null !== expression" instead) > > ?> > > It is design, or a bug?
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> -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php