清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
数组常量现在可以使用 define() 函数定义。 在PHP5.6,它们只能使用 const 关键字定义。
示例
<?php
//define a array using define function
define('animals', [
'dog',
'cat',
'bird'
]);
print(animals[1]);
?>
这将在浏览器产生输出以下结果 -
cat
扫码二维码 获取免费视频学习资料

- 本文固定链接: http://phpxs.com/j/php7/1001239/
- 免费: Python视频资料获取