php hogehoge.php aaa みたいな形でphpのスクリプトをlinuxとかosから実行させるときに引数の aaa は$argv[] に配列として入ります(ただし$argv[0] はスクリプトの実行に使う名前(そのスクリプトの名前)っぽいので for文とかで回すときは注意かもしれないです) 例
hogehoge.php <?php print_r($argv); ?>
で
<?php
php hogehoge.php testeeeee
array(2) {
[0]=>
string(12) "hogehoge.php"
[1]=>
string(9) "testeeeee"
}
?>
と言うかたちです


