note 123981 added to language.constants.syntax
| From: | mh at hanft dot de | Date: | Mon, 24 Jun 2019 09:49:21 +0000 |
| Subject: | note 123981 added to language.constants.syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211387@lists.php.net to get a copy of this message | ||
With PHP 5.6, multi-dimensional arrays are also possible if you use "const" instead of
"define". So,
define('QUARTLIST',array('1.
Quarter'=>array('jan','feb','mar'),'2.Quarter'=>array('may','jun','jul')));
won't work with PHP 5.6, but
const QUARTLIST=array('1.
Quarter'=>array('jan','feb','mar'),'2.Quarter'=>array('may','jun','jul'));
will.
----
Server IP: 208.43.231.9
Probable Submitter: 119.81.81.244 (proxied: 93.241.247.224)
----
Manual Page -- http://php.net/manual/en/language.constants.syntax.php
Edit -- https://master.php.net/note/edit/123981
Del: integrated -- https://master.php.net/note/delete/123981/integrated
Del: useless -- https://master.php.net/note/delete/123981/useless
Del: bad code -- https://master.php.net/note/delete/123981/bad+code
Del: spam -- https://master.php.net/note/delete/123981/spam
Del: non-english -- https://master.php.net/note/delete/123981/non-english
Del: in docs -- https://master.php.net/note/delete/123981/in+docs
Del: other reasons-- https://master.php.net/note/delete/123981
Reject -- https://master.php.net/note/reject/123981
Search -- https://master.php.net/manage/user-notes.php