$template, 'arguments' => $arguments, ] ) ); */ $connection = new \SQLite3($path); $statement = $connection->prepare($template); foreach ($arguments as $key => $value) { $statement->bindValue(placeholder($key), $value); } $result = $statement->execute(); $last_insert_id = $connection->lastInsertRowID(); return [ 'result' => $result, 'last_insert_id' => $last_insert_id, ]; } ?>