超人工智能
So far (end of chapter 1, just before jumping into the OO part) the book doesn't say a word about superglobals. I think this is an important topic and I suppose there must be questions about the superglobals on the exam.
到目前为止(第1章结尾,就在进入OO部分之前),这本书还没有提到有关超全局变量的内容。 我认为这是一个重要的主题,并且我认为考试中必须存在有关超全局变量的问题。
The best place to get an idea about the superglobals is this PHP.net manual entry. Note how there was a different set of superglobals prior to php.4.1 but I was lead to believe that the exam is concentrated on stuff after 4.1. (and before php5).
最好的了解超全局性的地方是此PHP.net手册条目。 请注意,在php.4.1之前,如何有一组不同的超全局变量,但我被认为是在4.1之后的考试。 (并且在php5之前)。
Briefly, here's the list of superglobals:
简要地说,这是超全局变量的列表:
- $_GET - variables sent using a GET HTTP request $ _GET-使用GET HTTP请求发送的变量
- $_POST - variables sent using a POST HTTP request$ _POST-使用POST HTTP请求发送的变量
- $_COOKIE - array of all cookies that are sent by the server$ _COOKIE-服务器发送的所有cookie的数组
- $_REQUEST - a merge of the three above$ _REQUEST-以上三个的合并
- $_SESSION - array containing the session data$ _SESSION-包含会话数据的数组
- $_SERVER - server variables like REMOTE_ADDR, SCRIPT_NAME, REQUEST_URI, etc.$ _SERVER-服务器变量,例如REMOTE_ADDR,SCRIPT_NAME,REQUEST_URI等。
- $_ENV - more or less the same as $_SERVER $ _ENV-与$ _SERVER大致相同
- $_FILE - data about uploaded files$ _FILE-有关上传文件的数据
$GLOBALS - array of all global variables, see the previous blog entry for an example
$ GLOBALS-所有全局变量的数组,有关示例,请参见前面的博客条目
Tell your friends about this post on Facebook and Twitter
在Facebook和Twitter上告诉您的朋友有关此帖子的信息
超人工智能