[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/language/_constants.xml?=
From: Remi_Collet <remi () php ! net>
Date: 2017-09-14 10:38:27
Message-ID: svn-remi-1505385507-343088-2073470634 () svn ! php ! net
[Download RAW message or body]
remi Thu, 14 Sep 2017 10:38:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=343088
Log:
Array constant only allowed in 7+
Changed paths:
U phpdoc/en/trunk/language/constants.xml
Modified: phpdoc/en/trunk/language/constants.xml
===================================================================
--- phpdoc/en/trunk/language/constants.xml 2017-09-14 08:27:38 UTC (rev 343087)
+++ phpdoc/en/trunk/language/constants.xml 2017-09-14 10:38:27 UTC (rev 343088)
@@ -75,7 +75,7 @@
only scalar data (<type>boolean</type>, <type>integer</type>,
<type>float</type> and <type>string</type>) 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 <type>array</type> constant. It is possible to define
constants as a <type>resource</type>, but it should be avoided, as it can
cause unexpected results.
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic