title: Getting values from associative array
body: <p>I have the following main array called <code>$m</code>     </p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [home] =&gt; Home
          )
  
      [1] =&gt; Array
          (
              [contact_us] =&gt; Contact Us
          )
  
      [2] =&gt; Array
          (
              [about_us] =&gt; About Us
          )
  
      [3] =&gt; Array
          (
              [feedback_form] =&gt; Feedback Form
          )
  
      [4] =&gt; Array
          (
              [enquiry_form] =&gt; Products
          )
  
      [5] =&gt; Array
          (
              [gallery] =&gt; Gallery
          )
  
  )
  </code></pre>
  
  <p>I have the values eg home, contact_us in a array stored $options , I need to get the values from the main array called $m using the $options array</p>
  
  <p>eg. If the $options array has value home, i need to get the value Home from the main array ($m)</p>
  
  <p>my code looks as follows</p>
  
  <pre><code>                    $c = 0;
                      foreach($options as $o){
                          echo $m[$c][$o];
                          ++$c;
                      }
  </code></pre>
  
  <p>I somehow just can't receive the values from the main array?</p>