phpLinux下执行带参数的PHP 6月 7, 2014 - by 欧阳逍遥 - Leave a Comment php文件内容 <?php echo $argv[‘1’].$argv[‘2’]; echo ‘/n\n’; $a = $argv[‘1’]; $b = $argv[‘2’]; echo ‘a==>>’.$a; echo ‘b==>>’.$b; ?> [root@localhost html]# php /var/www/html/cron.php aa bb 输出结果:aabb/n\n a==>>aa b==>>bb