企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# postGet 优先先从post中取值,若没有再从get中取值;如果post与get中有相同的字段名,则以post值为准。如果都不存在则返回空字符串 *xss_clean:是否使用xss清理* ### 函数原型 ```php /** * postGet * @param $index * @param $xss_clean * @return string */ public function postGet($index, $xss_clean = true) ``` ### 使用示例 ```php public function http_index(){ //先获取post请求的值,若没有则从get中取值 $data = $this->http_input->postGet("data"); } ```