ktamas77 / firebase-php

Firebase PHP Client
791 stars 215 forks source link

Push Parameters #71

Open JerahAnibor opened 7 years ago

JerahAnibor commented 7 years ago

Please explain the parameters to pass into the push function? Thanks.

push($path, $data, $options);

gik000 commented 7 years ago

Hi,

the $options eventually will be passed to http_build_query http://php.net/manual/en/function.http-build-query.php that build the query string.

$path is the full remote (firebase) path to work on

$data is a data structure that will be passed to firebase database as json.