PHP 7 Constant Arrays - PHP7

What is PHP 7 Constant Arrays?

Array constants can now be define using the define () function. In PHP 5.6, they could only be defining using const keyword.

Example

It produces the following browser output –

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

PHP7 Topics