note 104716 deleted from language.operators.precedence by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 14:15:13 +0000 |
| Subject: | note 104716 deleted from language.operators.precedence by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189787@lists.php.net to get a copy of this message | ||
Note Submitter: Christopher Schramm
----
( - the function call operator - has higher precedence than ++ and --, but lower precedence than [.
Therefore you can do the following:
<?php
$func[0] = 'exit';
$func[0]();
?>
But the following will cause a syntax error:
<?php
function func() {
return array('string');
}
func()[0];
?>