Skip to content

Instantly share code, notes, and snippets.

@MattSkala
Created September 1, 2012 11:44
Show Gist options
  • Save MattSkala/3570789 to your computer and use it in GitHub Desktop.
Save MattSkala/3570789 to your computer and use it in GitHub Desktop.
What is expected output?
/*
table foo
id int(11) AUTO INCREMENT
name varchar(255)
*/
$item = array();
$item['id'] = null;
$item['name'] = "Lorem ipsum";
$row = $connection->table('foo')->insert($item);
var_dump($row->id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment