Home > php教程 > php手册 > php的超全局变量

php的超全局变量

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 19:51:01
Original
1371 people have browsed it

1. $_GET $_POST $_REQUEST php的输入包括get,post,post文件上传 php code: $_REQUEST(get post 有同名的参数 则以post优先),$_GET ,$_POST $_SERVER $_SESSION $_COOKIE $_FILES 8. $GLOBALS $sb= ' zq ' ; test(); function test(){ var_dump($GLOBALS[ '

1. $_GET  $_POST  $_REQUEST

  php的输入包括get,post,post文件上传

  php code:  $_REQUEST(get & post 有同名的参数 则以post优先),$_GET ,$_POST   

$_SERVER

$_SESSION

$_COOKIE

$_FILES

8. $GLOBALS 

$sb=<span>'</span><span>zq</span><span>'</span><span>;
        test();
        function test(){
            var_dump($GLOBALS[</span><span>'</span><span>sb</span><span>'</span><span>]);
        }
        echo </span><span>'</span><span><hr></span><span>'</span><span>;
        $obj_zq </span>= <span>new</span><span> zq();
        $obj_zq</span>-><span>test();
        </span><span>class</span><span> zq{
            </span><span>public</span><span> function test(){
                var_dump($GLOBALS[</span><span>'</span><span>sb</span><span>'</span><span>]);
            }
        }</span>
Copy after login

 

 

 

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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template