diff --git a/README.md b/README.md index 84edbc7..5a189a5 100644 --- a/README.md +++ b/README.md @@ -67,15 +67,15 @@ use divengine/nodes; $db = new nodes("database/contacts"); -$id = $db->addNode(array( +$id = $db->addNode([ "name" => "Peter", "age" => 25 -)); +]); -$db->setNode($id, array( +$db->setNode($id, [ "email" => "peter@email.com", "phone" => "+1222553335" -)); +]); $contact = $db->getNode($id);