Skip to content

Instantly share code, notes, and snippets.

@lorenzo
Last active January 12, 2016 09:39
Show Gist options
  • Save lorenzo/6ffcbf74ebe3c1345b1f to your computer and use it in GitHub Desktop.
Save lorenzo/6ffcbf74ebe3c1345b1f to your computer and use it in GitHub Desktop.
<?php
$values = [
['title' => 'foo', 'body' => 'bar'],
['title' => 'foo 2', 'body' => 'bar 2'],
];
$query = $table->query();
$query
->insert(['title', 'body'])
->clause('values')
->values($values);
$query->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment