<?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 = 'INSER INTO '.$table.' ('
.join(', ', array_keys(current($vocabulary)))
.') VAULES '
.join(', ', array_map(function($x)
{
return '('.join(', ', array_map(function($y)
{
return "'".$y."'";
}, $x)).')';
}, $vocabulary))
.';';
var_dump($sql);
preferences:
47.35 ms | 402 KiB | 5 Q