Your IP address is: 3.80.85.76
Monday 17th of December 2018 11:56:46 AM

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 »