国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP constant array

In PHP 5.6, constant arrays can only be defined through const, and in PHP 7, they can be defined through define().

Example

<?php
// 使用 define 函數(shù)來(lái)定義數(shù)組
define('sites', [
   'Google',
   'php',
   'Taobao'
]);

print(sites[1]);
?>

The execution output of the above program is:

php
Continuing Learning
||
<?php // 使用 define 函數(shù)來(lái)定義數(shù)組 define('sites', [ 'Google', 'php', 'Taobao' ]); print(sites[1]); ?>
submitReset Code