title: PHP how to get the exact argv (exact params to current command)?
body: <p>The $argv array contains <em>almost</em> same values and I can't find who holds the exact ones. I mean all escaping/enquoting of special symbols disappear. And thus I can't pass same params to another script (or simply log exact command called) without re-processing which is a useless code I'd like to avoid.</p>
  
  <p>Here's a test php file:</p>
  
  <pre><code>&lt;?php
  var_dump($_SERVER["argv"]);
  </code></pre>
  
  <p>Demonstration:</p>
  
  <pre><code>[denis@mypc ~]$ php test.php key="val space" key2=val\ space
  array(3) {
    [0]=&gt;
    string(8) "test.php"
    [1]=&gt;
    string(13) "key=val space"
    [2]=&gt;
    string(14) "key2=val space"
  }
  </code></pre>
  
  <p>So if I then use join(" ", $argv) I will get:</p>
  
  <pre><code>test.php key=val space key2=val space
  </code></pre>
  
  <p>Which is not the same call (contains 4 parameters, not 2).</p>
  
  <p>Again: ideally I need to get exactly same command I'm executing in.</p>