Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. private function handleData($args)  ///// args - print ({\"type\":0,\"players\":[87670156]}"})
  2.     {
  3.         $json = json_decode($args, true);   ///NULL
  4.         $type = $json["type"];  ///NULL
  5.         $data = $json["players"];  ///NULL
  6.  
  7.         if ($type == $this::GET_STATS){
  8.             $this->getPlayersStats($data);
  9.         }else{
  10.             $this->setPlayersStats($data);
  11.         }
  12.         echo json_encode($json);
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement