网站首页
编程语言
数据库
系统相关
其他分享
编程问答
12q3
2024-09-20
PHP命令行脚本接收参数
使用$argvor$argc参数接收<?phpecho"接收到{$argc}个参数";print_r($argv);phptest.php接收到1个参数Array( [0]=>test.php)phptest.phpabcd接收到5个参数Array( [0]=>test.php [1]=>a [2]=>b [3]=>c