Objective-C->JSON->PHP Array

后端 未结 2 1107
暖寄归人
暖寄归人 2020-12-11 09:35

I\'ve been struggling with this for the last few days; I am trying to post an array to PHP. I can successfully send it, but it\'s not taken in with a post-variable (I am try

2条回答
  •  渐次进展
    2020-12-11 09:53

    It would be better to use below PHP function response would be in stdobject

    parse_str(file_get_contents("php://input"), $data);
    
    $d = json_decode(json_encode($data));
    

提交回复
热议问题