title: PHP < 5.3, create_function and use variable
body: <p>I'm trying to convert some PHP 5.3 code into PHP 5.2 (which doesn't support anonymous functions) . This is the PHP 5.3 code:</p>
  
  <pre><code>$nr = 2;
  $a = array(1,2,3,4,5,6,7,8,9,10);
  $a = array_filter($a,function($e) use($nr) {
      return $e % $nr == 0;
  });
  </code></pre>
  
  <p>My conversion is as such:</p>
  
  <pre><code>array_filter($a,create_function('$e','return $e % $nr == 0;'));
  </code></pre>
  
  <p>Where should the <code>use($nr)</code> be placed?</p>