Skip to content
damon-kronski edited this page Oct 28, 2014 · 1 revision

Definition

newId();

Returns the next used id.

Example

$jsonPath = "data/db.json";
$defaultArray = array(array('id' => 1,'name' => 'Test Item 1','value' => 'Lorem Ipsum'));

$JsonDB = JsonDB::withJson($defaultArray,$jsonPath);

$id = $JsonDB->newId();
echo $id;

Getting Started

Getting Started


Initializing

withCookie

withJson


Data Access

addItem

setItem

delItem


Misc

readDB

newId

Clone this wiki locally