Skip to content

Instantly share code, notes, and snippets.

@fzaffa
Created October 20, 2014 16:29
Show Gist options
  • Save fzaffa/58e13ffe0cefad448e0a to your computer and use it in GitHub Desktop.
Save fzaffa/58e13ffe0cefad448e0a to your computer and use it in GitHub Desktop.
$stations = [
[
'name' => 'stazione1',
'indirizzo' => 'dummy Address 123,
'numero' => '34
],
[
'name' => 'stazione2',
'indirizzo' => 'dummy Address 123,
'numero' => '134
],
[
'name' => 'stazione3',
'indirizzo' => 'dummy Address 123,
'numero' => '324
],
];
$string = "inizio della quesy"
foreach($stations as $station)
{
$string.= " VALUES ( $station['nome'], $station['indrizzo'], $station['numero'], )";
}
$string.=";";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment