Home > Backend Development > PHP Tutorial > 100分PHP怎么获取PUT和DELETE请求的参数

100分PHP怎么获取PUT和DELETE请求的参数

WBOY
Release: 2016-06-13 12:36:20
Original
1572 people have browsed it

100分求助:PHP如何获取PUT和DELETE请求的参数
Hi,大家好,我在尝试用PHP实现RESTful API接口,现在遇到了一个问题:

当请求类型是POST或GET的时候,PHP可以很容易地通过$_POST、$_GET和$_REQUEST来获取客户端输入的参数;但是当请求类型是PUT或DELETE时,我不知道PHP应该使用哪种方法来获取参数。

大家有没有遇到过类似的问题?请不吝赐教~

PHP RESTful
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template