title: Issues with variable scopes in PHP
body: <p>I have just written a program to check for the variable scopes in PHP. The code goes like this:</p>
  
  <pre><code>&lt;?php
  $value = 1;
  function change_value(){
      if(some_condition){
          $value = 0;
          $asset = 1;
      }else{
          $asset = 0;
      }
      return $asset;
  }
  echo $value;
  change_value();
  echo $value;
  ?&gt;
  </code></pre>
  
  <p>Now, the output of the above program is <code>11</code>.
  How can I change the value of <code>$value</code> once it enters the function <code>change_value()</code> ?</p>