array becamed nulled in the class
<p>hay
my class</p>

<pre><code>class language{

    function merge($filename = ''){ 
// the path is true
    return include_once ('language/'.$filename);
    }

}
</code></pre>

<p>ok this lang test</p>

<pre><code>en.php

&lt;?php

if (empty($lang) || !is_array($lang))
{
    $lang = array();
}

$lang = array_merge($lang, array(
    'test'  =&gt; 'Home Page'

));

?&gt;
</code></pre>

<p>if i add</p>

<pre><code>echo $lang['test'];
</code></pre>

<p>in the en.php its return Home Page</p>

<p>but i i make the class</p>

<pre><code>$l = new language;
$l-&gt;merge('en.php');
</code></pre>

<p>its not working
i checked it</p>

<pre><code>var_dump($lang);
</code></pre>

<p>it return null</p>
