摘要: 在 PHP 5.6 中仅能通过 const 定义常量数组,PHP 7 可以通过 define() 来定义。 实例 <?php // 使用 define 函数来定义数组 define('sites', [ 'Google', 'Runoob', 'Taobao' ]); print(sites[1]) 阅读全文
posted @ 2021-09-01 17:56 zda龙 阅读(54) 评论(0) 推荐(0) 编辑