php中全局变量列表:$GLOBALS
$_SERVER
$_REQUEST
$_POST
$_GET
$_FILES
$_ENV
$_COOKIE
$_SESSION1、$GLOBALS可将$GLOBALS[‘a‘]中php变量a转化成全局变量!例如:<?php
$x=75;
$y=25;
functionaddition(){
$GLOBALS[‘z‘]=$GLOBALS[‘x‘]+$GLOBALS[‘y‘];
}
addition();
ech..
分类:
Web程序 时间:
2017-07-11 14:31:10
阅读次数:
146