
III.1. Các biến SuperGlobal
Các biến global là các biến được khai báo ở mức ngoài cùng của PHP được
sử dụng chung cho mọi module
Các biến SuperGlobal là các biến (mảng) được PHP tạo ra để lưu các thông
tin cần thiết
Array Description
$_COOKIE Contains keys and values set as browser cookies
$_ENV Contains keys and values set by the script's shell context
$_FILES Contains information about uploaded files
$_GET Contains keys and values submitted to the script using the HTTP get
method
$_POST Contains keys and values submitted to the script using the HTTP post
method
$_REQUEST A combined array containing values from the $_GET, $_POST, and
$_COOKIES superglobal arrays
$_SERVER Variables made available by the server
$GLOBALS Contains all global variables associated with the current script