Created
August 24, 2013 14:14
-
-
Save ablyler/6328383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new SQLite3('file:memdb1?mode=memory&cache=shared'); | |
$db->exec('CREATE TABLE foo (bar STRING)'); | |
$db->exec("INSERT INTO foo (bar) VALUES ('This is a test')"); | |
$result = $db->query('SELECT bar FROM foo'); | |
var_dump($result->fetchArray()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment