Home  >  Article  >  Backend Development  >  php服务器端怎么获得multipart/form-data post的json数据

php服务器端怎么获得multipart/form-data post的json数据

WBOY
WBOYOriginal
2016-06-13 12:04:242291browse

php服务器端如何获得multipart/form-data post的json数据
客户端是用java post一个multipart/form-data请求,包含json参数数组,和一个上传的文件。
请问在php服务器端如何解析/获取json数据?
------解决方案--------------------
file_put_contents('test.txt', print_r($_POST, 1));
看看 test.txt 中有什么

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn