Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP Constant Arrays

PHP Constant Arrays

PHP 7 New Features PHP 7 New Features

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

Example





The output of the above program is:



Runoob


PHP 7 New Features PHP 7 New Features