Content deleted Content added
Tagged as new page, to allow time for expansion. |
more langs |
||
Line 18:
}
</source>
===Perl===
[[Perl]] uses <code>$ARGV</code>.
===PHP===
[[PHP]] uses <code>argc</code> as a count of arguments and <code>argv</code> as an [[array (computing)|array]] containing the values of the arguments.<ref>http://php.net/manual/en/reserved.variables.argv.php</ref> For example:
<source lang="php">
var_dump($argv);
</source>
===Python===
[[Python (programming language)|Python]] uses <code>sys.argv</code>, e.g.:
<source lang="python">
for arg in sys.argv:
print arg
</source>
|