<?php
$name = "Ben";
$id = "id1234";
$method = "get data";
// build result in json format
$arr = array("result" => "success",
"uid" => $id,
"data"=>array("name"=>$name,
"id"=>$id,
"method"=>$method
)
);
echo json_encode($arr);
?>
No comments:
Post a Comment