贺胖娇的编程之旅......
$argv代表传递的参数,$argc代表参数个数(相对路径+传的参数) 示例
<?php echo $argv[0]; echo "\n"; var_dump($argv[1]); echo "\n"; var_dump(intval($argv[2])); echo "\n"; echo $argv[3]; echo "\n"; echo $argc;