0
I have a Config class in which I define the DEBUG constant with true or false value. This constant is accessed in several pages of the system with:
Config::DEBUG;
I would like to set this constant with the value I have in a file . ini that also saves DB settings.
class Config { const DEBUG = true; }
I would like to define the DEBUG constant as:
$ini = parse_ini_file('config.ini'); $ini['debug'];