title: Getting data from an object array
body: <p>I have an array </p>
  
  <pre><code>Array (
      [bla123] =&gt; Array
          (
              [0] =&gt; 2
              [1] =&gt; 3
              [2] =&gt; 2
              [3] =&gt; 2
              [4] =&gt; 2
              [5] =&gt; 2
              [6] =&gt; 2
              [7] =&gt; 2
              [8] =&gt; 2
          )
  
      [12xye] =&gt; Array
          (
              [0] =&gt; 4
              [1] =&gt; 3
              [2] =&gt; 3
              [3] =&gt; 2
              [4] =&gt; 2
              [5] =&gt; 4
              [6] =&gt; 2
              [7] =&gt; 2
              [8] =&gt; 2
          )
  
  )
  </code></pre>
  
  <p>How can i access this array in php and also get the number of 1,2,3.. etc from it in php.
  The logic is to get the rating of a products. the data is fetched from the database completely and then sorted using php.
  for eg: 
  product1 
  one star:1
  two star:3 
  three star:2
  etc... 
  somewhat like a star system in flipkart, amazons etc.. </p>