- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
- Parse error: syntax error, unexpected '$android' (T_VARIABLE) in /in/nq0vS on line 6
Process exited with code 255.
<?php
$payload = new stdClass();
$android = new stdClass();
$android->title = "test cafe"
$android->payload = array(
['$state'] => "base.messages"
);
$ios = new stdClass();
$ios->title = $title;
$ios->payload = array(
['$state'] => "base.messages"
);
$notification = new stdClass();
$notification->alert = "title";
$notification->android = $android;
$notification->ios = $ios;
$data = array(
"user_ids" => $userArray,
"notification" => $notification
);