Skip to content

Instantly share code, notes, and snippets.

@eyedol
Last active December 20, 2015 16:29
Show Gist options
  • Save eyedol/6162335 to your computer and use it in GitHub Desktop.
Save eyedol/6162335 to your computer and use it in GitHub Desktop.
if (isset($_GET['task']))
{
$m = "Your message has been received";
$f = "0267123407";
$s = "true";
$reply[0] = array("to" => $f, "message" => $m);
echo json_encode(array("payload"=>array("success"=>$s,"task"=>"send","messages"=>array_values($reply))));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment