title: PHP variables in anonymous functions
body: <p>I was playing around with anonymous functions in PHP and realized that they don't seem to reach variables outside of them.
  Is there any way to get around this problem?</p>
  
  <p>Example:</p>
  
  <pre><code>$variable = "nothing";
  
  functionName($someArgument, function() {
    $variable = "something";
  });
  
  echo $variable;  //output: "nothing"
  </code></pre>
  
  <p>This will output "nothing". Is there any way that the anonymous function can access the <code>$variable</code>?</p>