Home  >  Article  >  Backend Development  >  DiscuzX-自定义函数的意思

DiscuzX-自定义函数的意思

WBOY
WBOYOriginal
2016-06-13 10:34:081055browse

DiscuzX-自定义函数的意义
位于function_core.php中的getgpc()这个函数的意义是什么?为什么要用这个函数来获取表单参数?谢谢

------解决方案--------------------
本人看来他主要是方便获取有可能为get或post不确定的变量!
因为用$_REQUEST,不是太好
------解决方案--------------------
在有些模块中提交的参数不会出现在$_G数组中,就用这个函数。当然,也可以用最原始的$_POST或者$_GET,但是,如果以后参数提交方式变了,你又得改代码了
------解决方案--------------------
安全,方便,便于统一修改,

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