PHP Command Line Arguments and Options
<p>I am writing a small command line application in php.  </p>

<p>What is the correct way to handle command line arguments and options?</p>

<p>There seems to be the argv array, $_SERVER['argv'],  and getopt but its confusing when to use each?</p>

<p>Also with regards to options i.e. "argument --option" what is the best way to get these?</p>
