Anubis is the god of death in ancient egpypt
Seçkin Üye
You can not store array in php constants.
Because php constant can store single string only.
BUT if you serialize an array to string then you can store it constants in constnats.
See Examples:
Because php constant can store single string only.
BUT if you serialize an array to string then you can store it constants in constnats.
See Examples:
Kod:
define ("MY_FRUITS", serialize (array ("apple", "cherry", "banana","mango")));