Your IP address is: 54.205.211.87
Thursday 17th of January 2019 05:10:53 PM

Author Archives: sairry

Constant arrays using define()

Constant arrays using define()

Array constants can now be defined with define(). In PHP 5.6, they could only be defined with const.

<?php
define('ANIMALS', [    'dog',
'cat',
'bird']);
Read More »