title: Accessing Multi dimensional array object in PHP
body: <p>I have an item object in PHP, which has the following structure on var_dump : </p>
  
  <pre><code>$item-&gt;properties:
  
  array (size=1)
    1 =&gt; 
      array (size=4)
        'Key1' =&gt; string 'Value1' (length=6)
        'Key2' =&gt; int 1
        'Key3' =&gt; string 'true' (length=4)
        'Key4' =&gt; string 'true' (length=4)
  </code></pre>
  
  <p>I want to access Key, value in a foreach loop and assign Key, value pair to some internal variables, however when i am using the foloowing code to loop pver array of array, i am getting error in accessing the values in the way i want. Here is what i am doing : </p>
  
  <pre><code>        foreach($item-&gt;properties as $property) {
              foreach($property as $value) {
                  echo $value;
              }
          }
  </code></pre>
  
  <p>Anyone have an idea what am i doing wrong, and how can i fix that ?</p>