add function to an array in php
<p>I'm having trouble declaring an array in conjunction to a function.  Here is my code, what am I doing wrong?  </p>

<pre><code>private function array_list(){
    return array('1'=&gt;'one', '2'=&gt;'two');
}

private $arrays= array(
    'a'=&gt;array('type'=&gt;'1', 'list'=&gt;$this-&gt;array_list())
);
</code></pre>

<p>Getting  unexpected T_VARIABLE error when I run this code.</p>
