title: How do I get index of an string array on php?
body: <p>Lets say I have an multidimensional string array:</p>
  
  <pre><code>.food = array(
              'vegetable' =&gt; array(
                                 'carrot' =&gt; 'blablue', 
                                 'potato' =&gt; 'bluebla', 
                                 'cauliflower' =&gt; 'blabla'
                             ), 
              'Fruit' =&gt; array(
                                 'apple' =&gt; 'chicken65', 
                                 'orange' =&gt; 'salsafood', 
                                 'pear' =&gt; 'lokkulakka'
              )
  );
  </code></pre>
  
  <p>is it possible to access the array by using index as numbers, instead of using the name of the key?
  So for accessing chicken65 , I will type echo $food[1][0]; I don't want to use numbers as key, because its a big array and its more user-friendly if I use string as key and it will let me do for-loops on advanced level.</p>