PHP7.0--define常量数组
作者:互联网
<?php
/**
* Created by PhpStorm.
*/
define('PERSON','yaoming');
define('PEOPLE',['xiaoming','xiaoli','xiaozhao']); //php7.0新特性,定义常量数组
echo PERSON;
echo "<br>";
echo PEOPLE[0];
echo "<br>";
echo PEOPLE[1];
echo "<br>";
echo PEOPLE[2];
echo "<br>";
标签:常量,PEOPLE,echo,数组,PHP7.0,define 来源: https://blog.csdn.net/modern358/article/details/89787037