PHP code example of ubermanu / donnee
1. Go to this page and download the library: Download ubermanu/donnee library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ubermanu / donnee example snippets
$db = new \Donnee\Donnee('file.txt');
$insertedId = $db->insert('some string');
// 1
echo $db->get(1);
// 'some string'
$db->update(1, 'new string');
echo $db->get(1);
// 'new string'
$db->delete(1);
var_dump($db->get(1));
// null