Command-line argument parsing: Difference between revisions

Content deleted Content added
Chmarkine (talk | contribs)
m Python: change to https if the server sends HSTS header, replaced: http://docs.python.org → https://docs.python.org using AWB
m PHP: dab
Line 22:
 
===PHP===
[[PHP]] uses <code>argc</code> as a count of arguments and <code>argv</code> as an [[array (computing)data structure|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> To create an array from command-line arguments in the <code>-foo:bar</code> format, the following might be used:
 
<source lang="php">