Does writing If (Function) {return function} execute the function twice?
<p>In Php if I write something like </p>

<pre><code>If ($this-&gt;that()){ return $this-&gt;that()}
</code></pre>

<p>Does it execute <code>$this-&gt;that()</code> twice? Or does that parser figure it out and reduce it to 1 call? </p>

<p>Trying to keep code clean if possible, but don't want to double by execution time for sake of one variable assignment. </p>
