Edit a .PHP file using PHP
<p>I have example language file en.php</p>

<pre><code>&lt;?php

$language = array(
    "language_code" =&gt; "en",
    "language_name" =&gt; "English",


);
</code></pre>

<p>These language files replace replace certain things in template files to support multi-language.</p>

<p>Is there a way to add stuff into the array using PHP?<br>
So I do something in the settings, e.g. add a new language value and the PHP adds this to the file en.php and saves it.</p>

<p>I wonder if this is possible because it can be quite complicated I guess. If it is possible, a slight suggestion to do so would be appreciated. I don't have much experience editing files in php.</p>

<p>If it would be better, I could change the language format to XML if that makes it easier.</p>

<p>Thanks</p>
