php程序初始化两行代码 utf8字符集和中国时区设置
header头,让代码用utf8字符集,避免页面显示乱码
header("Content-type: text/html; charset=utf-8");
中国时区设置
date_default_timezone_set('PRC');
header头,让代码用utf8字符集,避免页面显示乱码
header("Content-type: text/html; charset=utf-8");
中国时区设置
date_default_timezone_set('PRC');