php - what's the benefit of unsetting variables?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/584960/whats-better-at-freeing-memory-with-php-unset-or-var-null">What&#39;s better at freeing memory with PHP: unset() or $var = null</a><br>
  <a href="http://stackoverflow.com/questions/3298206/php-when-to-use-unset">Php, when to use unset</a>  </p>
</blockquote>



<p>Hello Guys,</p>

<p>My question today is if there is a real benefit of unsetting variables in php.</p>

<pre><code>class test {

  public function m1($a, $b)
    $c = $a + $b;
    unset($a, $b);
    return $c;
  }
}
</code></pre>

<p>Is it true that unsetting variables doesn't actually decrease the memory consumption during runtime?</p>

<p>Thanks in advance!</p>
