ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# getAllPostGet 获取所有的post和get,合并返回一个数组,若get和post中有相同字段post会覆盖get的值。 ### 函数原型: ```php /** * 获取所有的post和get */ public function getAllPostGet() ``` *如果不想抛弃get中相同字段的值,则需要通过 get 方法单独来获取* ### 使用示例: ```php public function http_index(){ //获取所有post和get值 $data = $this->http_input->getAllPostGet(); //单独获取get中重复的key $sameValue = $this->http_input->get('samekey'); $this->http_output->end($data); } ```