How does php execute a function assigned to variable?
<p>Ok, I didn't really know how to even phrase the question, but let me explain.</p>

<p>Suppose I have a variable:</p>

<pre><code>$file = dirname(__FILE__);
</code></pre>

<p>What happens if I assign <code>$file</code> to another variable?</p>

<pre><code>$anotherVariable = $file;
</code></pre>

<p>Does the <code>dirname</code> function get executed each time I assign?</p>

<p>Thanks for any help.</p>
