Array as a constant in PHP
It is possible to declare an array as a constant in PHP. In order to do so const keyword must precede the declaration.
One other way of achieving the same result is to use define function. define function takes two arguments. First one is the name of a constant, and second one its values.
Comments
Post a Comment