We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
newId();
Returns the next used id.
$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
withCookie
withJson
addItem
setItem
delItem
readDB
newId