title: $argv in a class
body: <p>I'm using <code>exec()</code> to exec a file but the file is in a class, I read more about argv  but it was confusing. I need to get it to work inside a class.</p>
  
  <p>It says:</p>
  
  <blockquote>
    <p>Please note that, $argv and $argc need to be declared global, while trying to access within a class method</p>
  </blockquote>
  
  <p><sub>on php.net</sub></p>