title: Is there a way to access a value from another value in the same array?
body: <p>I have an array of configuration:</p>
  
  <pre><code>return array(
      'admin_url' =&gt; 'admin',
      'routes' =&gt; array(
          'link1' =&gt; 'admin/link1',
          'link2' =&gt; 'admin/link2'
       )
  );
  </code></pre>
  
  <p>Is it possible to directly get 'admin_url' in 'link1'? Something like:</p>
  
  <pre><code>...
  'routes' =&gt; array(
      'link1' =&gt; someDynamicGet.'/link1',
  ...
  </code></pre>
  
  <p>Tried:</p>
  
  <pre><code>return $config = array(
      'admin_url' =&gt; 'admin',
      'routes' =&gt; array(
          'link1' =&gt; $config['admin_url'].'/link1',
          'link2' =&gt; $config['admin_url'].'/link2'
       )
  );
  </code></pre>
  
  <p>Did not work.</p>