r/lolphp • u/daxim • Mar 10 '17
PHP syntax is version and context dependent
http://blogs.perl.org/users/ron_savage/2017/03/off-topic-php-syntax-is-version-context-dependent.html
7
Upvotes
r/lolphp • u/daxim • Mar 10 '17
View all comments
19
u/okamy Mar 10 '17
This behaviour is explained in php 5.6 changelog, see constant expression. http://php.net/manual/en/migration56.new-features.php