title: Insert array batch in codeigniter
body: <p>I want to insert an array with array like below format, how to do this, i've try insert batch also, but it doesn't work.</p>
  
  <pre><code> array(4) {
    ["notification_title"]=&gt;
    array(2) {
      [0]=&gt;
      string(35) "Hello! We have a good news for you."
      [1]=&gt;
      string(35) "Hello! We have a good news for you."
    }
    ["notification_message"]=&gt;
    array(2) {
      [0]=&gt;
      string(81) "Now you can choose up to three types of advertisers that you wish to collaborate."
      [1]=&gt;
      string(95) "Saat ini Anda sudah dapat memilih maksimal 3 (tiga) tipe iklan untuk dipasang pada mobil Anda. "
    }
    ["notification_type"]=&gt;
    array(2) {
      [0]=&gt;
      string(1) "1"
      [1]=&gt;
      string(1) "1"
    }
    ["notification_language"]=&gt;
    array(2) {
      [0]=&gt;
      string(1) "1"
      [1]=&gt;
      string(1) "2"
    }
  }
  </code></pre>
  
  <p>i've try this, but it doesn't work</p>
  
  <pre><code>public function save($data) {
      $this-&gt;db-&gt;insert_batch($this-&gt;table, $data);   
  }
  </code></pre>
  
  <p>Error Message</p>
  
  <pre><code>&lt;h1&gt;A Database Error Occurred&lt;/h1&gt;
      &lt;p&gt;Error Number: 1064&lt;/p&gt;&lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0, 1) VALUES ('Hello! We have a good news for you.','Hello! We have a good news ' at line 1&lt;/p&gt;&lt;p&gt;INSERT INTO `ads_notification` (0, 1) VALUES ('Hello! We have a good news for you.','Hello! We have a good news for you.'), ('Now you can choose up to three types of advertisers that you wish to collaborate.','Saat ini Anda sudah dapat memilih maksimal 3 (tiga) tipe iklan untuk dipasang pada mobil Anda. '), ('1','1'), ('1','2')&lt;/p&gt;&lt;p&gt;Filename: C:/xampp/htdocs/movads/application/models/ModelNotifications.php&lt;/p&gt;&lt;p&gt;Line Number: 127&lt;/p&gt;  &lt;/div&gt;
  </code></pre>
  
  <p>This one is my print_r statement</p>
  
  <p>--- Print_r statement ---</p>
  
  <pre><code>    Array
  (
      [notification_title] =&gt; Array
      (
          [0] =&gt; Keep your weekly minimum distance well monitor.
          [1] =&gt; Keep your weekly minimum distance well monitor.
      )
  [notification_message] =&gt; Array
      (
          [0] =&gt; We found out that your driving is below weekly minimum distance. Keep driving safely and increase your driving distance to meet the minimum requirements.
          [1] =&gt; Anda masih belum memenuhi target jarak minimum mingguan. Tetap menyetir dengan aman dan tingkatkan jarak mingguan Anda. Tetap semangat!
      )
  
  [notification_type] =&gt; Array
      (
          [0] =&gt; 2
          [1] =&gt; 2
      )
  
  [notification_language] =&gt; Array
      (
          [0] =&gt; 1
          [1] =&gt; 2
      )
  
      )
  </code></pre>