title: Why do I need unset $value after foreach loop
body: <p>I am playing around with arrays in PHP, and I've get confused about unset() function, here's the code:</p>
  
  <pre><code>&lt;?php
  
  $array = array(1, 2, 3, 4);
  foreach ($array as $value) {
      $value + 10;
  }
  unset($value);
  print_r($array);
  
  ?&gt;
  </code></pre>
  
  <p>Is it necessary to unset($value), when $value remains after foreach loop, is it good practice?</p>