Created
August 25, 2017 14:19
-
-
Save lpj145/059a54c7be7e4722d3dc980f8d5464e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$database = new FiremonPHP\Database\Database(); | |
$newPosts = $database->set([ | |
'users' => [ | |
['nome' => 'Marcos Dantas', 'cidade' => 'Parelhas'] // Inserção de muitos registros | |
//... | |
], | |
'users/65165161' => [ // Aqui é uma atualização | |
'nome' => 'Marcos Dantas', | |
'cidade' => 'Parelhas' | |
], | |
'users/84949' => null // Deleção aqui | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment