How to save php config?
<p>I have a standard config file: <code>$variable = 'value';</code>, but at the last moment came up to use the web interface to configure it. So what is the best way to read the file, find the value of variables and then resave the file again? </p>

<p>At the moment I have 2 ideas:</p>

<p>1) RegExp<br>
2) Keep somewhere array example</p>
