Answers for "php array constant get all constante with this value"

PHP
1

php constant array

<?php
    const ANIMALS = array('dog', 'cat', 'ant');
    define('ANIMALS', array('dog', 'cat', 'ant'));
?>
Posted by: Guest on March-18-2021
0

php list all constants

print_r(get_defined_constants());
Posted by: Guest on January-23-2021

Browse Popular Code Answers by Language