Command-line argument parsing: Difference between revisions

Content deleted Content added
SmackBot (talk | contribs)
m Date maintenance tags and general fixes: build 417:
m Filling in 2 references using Reflinks
Line 5:
===C===
{{Main|C_syntax#Command-line_arguments}}
C uses <code>argv</code> to process command-line arguments.<ref>{{cite web|url=http://publications.gbdirect.co.uk/c_book/chapter10/arguments_to_main.html |title=The C Book — Arguments to main |publisher=Publications.gbdirect.co.uk |date= |accessdate=2010-05-31}}</ref>
 
===Java===
Line 23:
 
===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>{{cite web|url=http://php.net/manual/en/reserved.variables.argv.php |title=PHP Manual |publisher=PHP |date= |accessdate=2010-05-31}}</ref><ref>[[wikibooks:PHP Programming/CLI]]</ref> For example:
<source lang="php">
var_dump($argv);