title: How do I change a static variable within a function?
body: <p>I'm not sure if this can be done, but I thought I would ask. For reasons that are long, management related, and boring... it would be very useful to be able to change a variable declared as <code>static</code> within a method inside a class. For example:</p>
  
  <p>
  
  <pre><code>class Test{
      function staticFunction() {
          static $value = 'Hello, world!';
      }
  }
  </code></pre>
  
  <p>For the sake of this problem, I can't change the code inside <code>Test::staticFunction()</code>. So, this is not a class variable accessible though <code>self::$value</code>, but a variable defined within the scope of this function only. Is there any way to change that <code>$value</code> variable from outside the method scope?</p>