• 2024-09-20PHP命令行脚本接收参数
    使用$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