title: PHP associative array get value by key
body: <p>I have an assiciative multidenentional array,
  what I am tring to do is to receive a value by key name.
  for example, when I will write <code>$call['NAME']</code> I will get the key value</p>
  
  <p>this is may array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [ID] =&gt; 15678996
              [START] =&gt; 2016-10-07 10:33:08
              [END] =&gt; 2016-10-07 10:39:16
              [NAME] =&gt; פרי גנך
              [CALLERID] =&gt; 0504446349
              [CALLEE] =&gt; 089975757
              [O_EXTEN] =&gt; 1
              [EXTEN] =&gt; 1
              [SUPERID] =&gt; 49256
              [CUSTID] =&gt; 320748
              [PRICE] =&gt; 0.0
              [ANS_TIME] =&gt; 2016-10-07 10:33:09
              [DISPOSITION] =&gt; ANSWER
              [DURATION] =&gt; 367
              [INCOME] =&gt; 0.00
              [PR_NUMBER] =&gt; 723924039
              [CONCATENATION] =&gt; 320748,ANSWER;
              [OUTERID] =&gt; 
          )
  
      [1] =&gt; stdClass Object
          (
              [ID] =&gt; 15677268
              [START] =&gt; 2016-10-07 08:53:47
              [END] =&gt; 2016-10-07 08:54:21
              [NAME] =&gt; פרי גנך
              [CALLERID] =&gt; 0544300515
              [CALLEE] =&gt; 089975757
              [O_EXTEN] =&gt; 1
              [EXTEN] =&gt; 1
              [SUPERID] =&gt; 49256
              [CUSTID] =&gt; 320748
              [PRICE] =&gt; 0.0
              [ANS_TIME] =&gt; 2016-10-07 08:53:48
              [DISPOSITION] =&gt; ANSWER
              [DURATION] =&gt; 33
              [INCOME] =&gt; 0.00
              [PR_NUMBER] =&gt; 723924039
              [CONCATENATION] =&gt; 320748,ANSWER;
              [OUTERID] =&gt; 
          )
  )
  </code></pre>
  
  <p>What i want to achieve is to echo each value by writing his key name.</p>
  
  <p>the main array is called <code>$all_calls</code>
  this is what i havee done so far: </p>
  
  <pre><code>foreach($all_calls as $call ){
    foreach ($call as $key =&gt; $value){
      echo '&lt;b&gt;Key&lt;/b&gt; '.$key .': &lt;b&gt;Value&lt;/b&gt; '. $value;
    }
  }
  </code></pre>
  
  <p>what am i missing here?</p>