Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function handleData($args) ///// args - print ({\"type\":0,\"players\":[87670156]}"})
- {
- $json = json_decode($args, true); ///NULL
- $type = $json["type"]; ///NULL
- $data = $json["players"]; ///NULL
- if ($type == $this::GET_STATS){
- $this->getPlayersStats($data);
- }else{
- $this->setPlayersStats($data);
- }
- echo json_encode($json);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement