title: how to insert a array data in multiple columns based on a value pair which exists in array in php
body: <pre><code>array(1) { 
      [0]=&gt; array(7) { 
          ["ranking_course_id"]=&gt; string(1) "2" 
          ["ranking_college_id"]=&gt; string(2) "20" 
          ["ranking_year"]=&gt; string(4) "2017" 
          ["ranking_agency"]=&gt; array(3) { 
              [0]=&gt; string(1) "1" 
              [1]=&gt; string(1) "2" 
              [2]=&gt; string(1) "3" 
          } 
          ["ranking_value"]=&gt; array(3) { 
              [0]=&gt; string(2) "10" 
              [1]=&gt; string(2) "20" 
              [2]=&gt; string(2) "30" 
          } 
          ["ranking_salary"]=&gt; string(9) "9.20 Lacs" 
          ["ranking_fees"]=&gt; string(6) "354500" 
      } 
  }  
  </code></pre>
  
  <p>What I want to insert is the following.</p>
  
  <pre><code>course_id | college_id | ranking_agency | ranking | value | salary fees
  2            20               1              10      9.20      354500
  2            20               2              20      9.20      354500
  2            20               3              30      9.20      354500
  </code></pre>
  
  <p>Please help me out.</p>