php如何 使用全局变量
global $vfp_oledb_cstring;
$vfp_oledb_cstring=provider=vfpoledb.1;data source=d:/testoledb; collating sequence=machine;
testgol();
function testgol(){
echo $vfp_oledb_cstring;
}
结果是没有任何输出, 应该如何定义和使用全局变量呢
php 全局变量 分享到: