View Single Post
Old 02-17-2009, 10:19 AM  
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Code:
#!/usr/local/bin/php -q
<?php
// $argc contains the count of arguments passed
echo "Total argument passed are : $argc \n";

if ($argc) {
	// $argv contains an array of the arguments that were passed
	foreach($argv as $arg) {
		echo $arg."\n";
	}
}
?>
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote