<?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($vorcabulary, function($cur, $x)
{
return $cur.=join(', ', array_map(function($y)
{
return "'".$y."'";
}, $x));
}, 'INSERT INTO '.$t. '('.join(', ', array_keys(current($vorcabulary))).') VALUES ');
var_dump($sql);
preferences:
32.84 ms | 402 KiB | 5 Q