title: PHP: How to display a value from the first part of a multidimensional array?
body: <p>I can't figure this out...</p>
  
  <p>How do I display a value from the first part of an array like this:</p>
  
  <pre><code>$payments['plan'][] = array(
      'hours'   =&gt; '2 Hours', 
      'price_a' =&gt; '90.00',
      'price_b' =&gt; '190.00',
  );
  $payments['plan'][] = array(
      'hours'   =&gt; '3 Hours', 
      'price_a' =&gt; '110.00',
      'price_b' =&gt; '220.00',
  );
  $payments['plan'][] = array(
      'hours'   =&gt; '4 Hours', 
      'price_a' =&gt; '120.00',
      'price_b' =&gt; '350.00',
  );
  </code></pre>
  
  <p>In the above, let's say I wanted to display -- "90.00" -- how would I get that from the array?</p>
  
  <p>I've tried different variations of reset, done some searching, can't figure this out... just how to display that value from the first part of the array. </p>
  
  <p>Any suggestions?</p>
  
  <hr>
  
  <p>Doing this:</p>
  
  <pre><code>reset($payments);
  echo key($payments['plan']);
  </code></pre>
  
  <p>I just get the result: "0"</p>