title: PDO insert multiple rows with key and values as array
body: <p>my array looks like:</p>
  
  <pre><code>Array
  (
      [name] =&gt; Array
          (
              [0] =&gt; Matrix
              [1] =&gt; Ryan 
          )
  
      [surname] =&gt; Array
          (
              [0] =&gt; Relaoded
              [1] =&gt; Lose
          )
  
  )
  </code></pre>
  
  <p>my problem is that, the key and value doesn't match the count.</p>
  
  <p>How to insert this array like exact structure to mysql with PDO?</p>
  
  <p>In mysql table</p>
  
  <pre><code>    ----------------------------------
     |    id      name      surname    |
     |    1       Matrix    Relaoded   |
     |    2       Ryan      Lose       | 
      ----------------------------------
  </code></pre>
  
  <p>of course i need solution <strong>programmatically</strong>.</p>
  
  <p>I spent hours, to go trought this awesome forum, but i can't find solution :(</p>
  
  <p>Thanks ;)</p>