PHP常用的代码
PHP常用代码
date_default_timezone_set(PRC); //时区设置
header("Content-type: text/html; charset=utf-8");
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING);
ini_set ('memory_limit', '1280M');
set_time_limit — Limits the maximum execution time
从命令行获取参数
$argv 数组,索引0代表脚本文件名
$argc 参数个数
使用getopt函数
$param_arr = getopt('a:b:');
print_r($param_arr);
posted on 2020-05-19 10:15 aworkstory 阅读(235) 评论(0) 收藏 举报
浙公网安备 33010602011771号