Home > php教程 > php手册 > PHP中$_REQUEST中的数据覆盖问题

PHP中$_REQUEST中的数据覆盖问题

WBOY
Release: 2016-06-21 08:53:05
Original
1403 people have browsed it

其实这是在PHP的配置文件里面设置的,让我们来看一下php.ini这个配置文件,在第466行左右有如下内容:
 This directive describes the order in which PHP registers GET, POST, Cookie ;
 Environment and Built-in variables
 (G, P, C, E & S respectively, often ; referred to as EGPCS or GPC).
Registration is done from left to right, newer ;
values override older values. variables_order = "EGPCS"
这个EGPCS就是说明用$_REQUEST数组获取内容的优先级,
其字母的含义分别代表为:E代表$_ENV,G代表$_GET,P代表$_POST,
C代表$_COOKIE,S代表$_SESSION。



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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template