I'm writing a config editor. I'm reading in the file with fopen and fgets line by line. I want to get the array keys and values from the string. I'm not familiar with regex thats why i'm asking.
Example config file:
$conf['something'] = 'value';
$conf['other_thing']['another_key'] = 3000;
I can't loop through the $conf array, as it is a SuperObject in the system, and holds many additional datas, even inited classes...