quote_table($table); $fields = \array_keys(\current($data)); $insert_template = "INSERT INTO {$table} (" . implode(',', $this->quote_ident($fields)) . ") VALUES ("; foreach($data as $item) { // Quote string values $vals = array_map(array($this, 'quote'), $item); // Add the values in the sql $sql .= $insert_template . implode(', ', $vals) . ");\n"; } // End the block of SQL statements $sql .= "END"; // Return a null array value so the query is run as it is, // not as a prepared statement, because a prepared statement // doesn't work for this type of query in Firebird. return array($sql, NULL); } } //End of firebird_driver.php