title: PHP - Reference associative array inside same one
body: <p>Is it possible to get the associate array inside the same associative array? For example:</p>
  
  <pre><code>&lt;?php
  $config = [
      'uri' =&gt; [
          'base_url' =&gt; $_SERVER['HTTP_HOST'], // example.com
          'protocol' =&gt; 'https://',
          'url' =&gt; $config['uri']['protocol'] . $config['uri']['base_url'] // output: https://example.com
      ]
  ];
  </code></pre>
  
  <p>Obviously, that's not going to work but you get the idea. I've been looking at the PHP docs but I cannot find a defentive answer. ANy help would be appreciated -- thanks!</p>