Welcome Guest, Not a member yet? Register   Sign In
Proposal to Combine Constants
#1

PHP now allows array Constants which could group current defines:
Code:
// Works as of PHP 7
define('ANIMALS', array(
    'dog',
    'cat',
    'bird'
));
echo ANIMALS[1]; // outputs "cat"
Reply


Messages In This Thread
Proposal to Combine Constants - by John_Betong - 10-06-2021, 06:30 AM
RE: Proposal to Combine Constants - by kenjis - 10-06-2021, 10:38 PM
RE: Proposal to Combine Constants - by InsiteFX - 10-06-2021, 11:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB