title: Looping over an array that consists of associate arrays
body: <p>I have an array that looks like this:</p>
  
  <pre><code>[
  
     {
      "positional_index":"1.3",
      "sourceid":10409,
      "language": "Malayalam",
      "field_gita_10409_text": "Behold, O Teacher! this mighty army of the sons of Pandu, arrayed by the son of Drupada, thy wise disciple."
  
  
     },
  
     {
      "positional_index":"1.2",
      "sourceid":10409,
      "language": "Devanagari",
      "field_gita_10409_text": "1.1 Dhritarashtra said What did my people and the sons of Pandu do when they had assembled together eager for battle on the holy plain of Kurukshetra, O Sanjaya."
  
  
  
     },
  ]
  </code></pre>
  
  <p>I am supposed to use a foreach loop to access each of the keys. For example if the key = field_gita_10409_text, I have to used the explode() function in php to extract the value 10409 etc.</p>
  
  <p>I don't know how to use the foreach loop in this case, because the array consists 2 associative arrays. Please let me know.</p>