<?php
$dados = [
[
"('2615509767','Challenge','','','Portuguese','','')",
"('2178947891','Name','','','Portuguese','','')"
],
[ "('1877844784','City','','','English','','')" ]
];
$resultado = [];
for($a = 0; $a < count($dados); $a++) { $sql = "INSERT INTO 'tabela' VALUES ";
for($b = 0; $b < count($dados[$a]); $b++) { if ($b > 0) { $sql .= ', '; } // Concatena vírgula
$sql .= $dados[$a][$b]; // Concatena valor
if ($b === (count($dados[$a]) -1 )) { $sql .= ";"; // Concatena ponto e vírgula
}
}
}
PD9waHAKJGRhZG9zID0gWwogIFsKICAgICIoJzI2MTU1MDk3NjcnLCdDaGFsbGVuZ2UnLCcnLCcnLCdQb3J0dWd1ZXNlJywnJywnJykiLAogICAgIignMjE3ODk0Nzg5MScsJ05hbWUnLCcnLCcnLCdQb3J0dWd1ZXNlJywnJywnJykiCiAgXSwKICBbICIoJzE4Nzc4NDQ3ODQnLCdDaXR5JywnJywnJywnRW5nbGlzaCcsJycsJycpIiBdCl07CgokcmVzdWx0YWRvID0gW107CmZvcigkYSA9IDA7ICRhIDwgY291bnQoJGRhZG9zKTsgJGErKykgewogICRzcWwgPSAiSU5TRVJUIElOVE8gJ3RhYmVsYScgVkFMVUVTICI7CiAgZm9yKCRiID0gMDsgJGIgPCBjb3VudCgkZGFkb3NbJGFdKTsgJGIrKykgewogICAgaWYgKCRiID4gMCkgeyAkc3FsIC49ICcsICc7IH0gLy8gQ29uY2F0ZW5hIHbDrXJndWxhCiAgICAkc3FsIC49ICRkYWRvc1skYV1bJGJdOyAvLyBDb25jYXRlbmEgdmFsb3IKICAgIGlmICgkYiA9PT0gKGNvdW50KCRkYWRvc1skYV0pIC0xICkpIHsKICAgICAgJHNxbCAuPSAiOyI7IC8vIENvbmNhdGVuYSBwb250byBlIHbDrXJndWxhCiAgICB9CiAgfQogIGFycmF5X3B1c2goJHJlc3VsdGFkbywgJHNxbCk7Cn0KCmVjaG8gaW1wbG9kZSgiXG4iLCAkcmVzdWx0YWRvKTs=
INSERT INTO 'tabela' VALUES ('2615509767','Challenge','','','Portuguese','',''), ('2178947891','Name','','','Portuguese','','');
INSERT INTO 'tabela' VALUES ('1877844784','City','','','English','','');