<?php
$vocabulary = array(
array('Language' => 'Gotisch','Nederlands' => 'Gotisch','German' => 'Gotisch','English' => 'Gothic','article' => '','id' => '0','type' => '','French' => ''),
array('Language' => 'augĀ“','Nederlands' => 'oog','German' => 'Auge','English' => 'eye','article' => ' ','id' => '0','type' => '','French' => ''));
$table = 't';
$sql = array_reduce($vocabulary, function($cur, $x)
{
return $cur.='('.join(', ', array_map(function($y)
{
return "'".$y."'";
}, $x)).')';
}, 'INSERT INTO '.$table. '('.join(', ', array_keys(current($vocabulary))).') VALUES ');
var_dump($sql);
preferences:
39.36 ms | 402 KiB | 5 Q