Answers for "create a constants with array in php class"

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

Browse Popular Code Answers by Language