PHP 使用 curl 提交 json 格式數據(已實踐 可行)

注:http://www.cnblogs.com/caly/archive/2013/04/11/3013980.htmlphp $data = array("name" => "Hagrid", "age" => "36"); $data_string = json_encode($data); $ch = curl_init('http://api.local/rest/users'); c
相關文章
相關標籤/搜索