title: php multidimensional array get values
body: <p>This is my array in php <strong>$hotels</strong></p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
          [hotel_name] =&gt; Name
          [info] =&gt; info
          [rooms] =&gt; Array
              (
                  [0] =&gt; Array
                      (
                          [room_name] =&gt; name
                          [beds] =&gt; 2
                          [boards] =&gt; Array
                              (
                                  [board_id] =&gt; 1
                                  [price] =&gt;200.00
                              )
                      )
                  )
          )
  )
  </code></pre>
  
  <p>How can I get <strong>board_id</strong> and <strong>price</strong> I have tried few foreach loops but can't get the result</p>
  
  <pre><code>foreach($hotels as $row)
  {
      foreach($row as $k)
      {
          foreach($k as $l)
          {
              echo $l['board_id'];
              echo $l['price'];
          }
      }
  }
  </code></pre>
  
  <p>This code didn't work.</p>