台州网站排名优化公司,网站恶意攻击,wordpress幻灯箱插件,深圳网页制作培训班现在可以使用 define()函数定义数组常量。在PHP 5.6中#xff0c;只能使用 const 关键字定义它们。
?php//define a array using define functiondefine(animals, [dog,cat,bird]);print(animals[1]);
?
它产生以下浏览器输出-
cat PHP - 常量数组 - 无涯教程网无…
现在可以使用 define()函数定义数组常量。在PHP 5.6中只能使用 const 关键字定义它们。
?php//define a array using define functiondefine(animals, [dog,cat,bird]);print(animals[1]);
?
它产生以下浏览器输出-
cat PHP - 常量数组 - 无涯教程网无涯教程网提供现在可以使用 define()函数定义数组常量。在PHP 5.6中只能使用 const 关键字定义它...https://www.learnfk.com/php7/php7-constant-arrays.html