title: Calculation from specific array values in PHP
body: <p>i have the following array written in PHP.
  I need a way to print values by name, and if possible, do calculations with specific values (by looping through).</p>
  
  <pre><code>[MAIN] =&gt; Array
      (
          [FIRST] =&gt; Array
              (
                  [0] =&gt; 500
                  [1] =&gt; 1000
                  [2] =&gt; 1500
              )
  
          [SECOND] =&gt; Array
              (
                  [Name] =&gt; Nick
                  [State] =&gt; None
  
              )
  
      )
  </code></pre>
  
  <p>For example, by using the array above i'd like to print only the NAME of the "SECOND" array but without looping through every index (without using an index at all), and add each value of the "FIRST" array by looping throu them.</p>
  
  <p>Thank you!</p>