- 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 '$ios' (T_VARIABLE) in /in/qDVWa on line 13
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
);