: This article mainly introduces php simple webget request processing. if you are interested in the PHP Tutorial, please refer to it.
$ Output = array (); $ a =@ $ _ GET ['useid']? $ _ GET ['useid']: '';// $ Uid = @ $ _ GET ['uid']? $ _ GET ['uid']: 0;If (empty ($ )){// $ Output = array ('data' => NULL, 'info' => 'iOS! ', 'Code' =>-201 );$ Output = array ('hahah' => 'hello', 'requestdic' => 'hello', 'Hello' => array ('image' => 'Www .baidu.com ', 'imageurl' => 'Www .baidu.com '); exit (json_encode ($ output);} elseif (! Empty ($ a) {$ output = array ('hahah' => 'hello', 'requestdic' => 'hello ', 'Hello' => array ('image' => 'Www .sina.com ', 'imageurl' => 'Www .sina.com'); exit (json_encode ($ output ));};
The above introduces php simple web get request processing, including some content, and hopes to be helpful to friends who are interested in PHP tutorials.