Can you populate variables given to a function the same way php exec does?
<p>When using php exec you can pass it with a variable not previously defined like this : </p>

<pre><code>exec('whoami', $result, $status);
</code></pre>

<p>and they will be populated with information afterwards or initialized in this function. Can you do something similar with a function inside a custom class?</p>

<p>I have tried to search for an answer but not sure on what to search for so i'm sorry if this has previously been mentioned here.</p>
