$argc 是包含当运行于命令行下时传递给当前脚本的参数的数目。
$argc
<?php var_dump($argc);
当执行 php index.php foo bar 这条命令时,以上例程的输出类似于:
php index.php foo bar
int(3)