From b0329daf2d1e511babb8148dcff6a65201e6c458 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 14 Sep 2017 10:38:27 +0000 Subject: [PATCH] Array constant only allowed in 7+ git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343088 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/constants.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/constants.xml b/language/constants.xml index 93657bf22f..5eab76d9df 100644 --- a/language/constants.xml +++ b/language/constants.xml @@ -75,7 +75,7 @@ define("__FOO__", "something"); only scalar data (boolean, integer, float and string) can be contained in constants prior to PHP 5.6. From PHP 5.6 onwards, it is possible to - define a constant as a scalar expression, and it is also possible + define a constant as a scalar expression, and from PHP 7 it is also possible to define an array constant. It is possible to define constants as a resource, but it should be avoided, as it can cause unexpected results.