php create_function and use variable
<p>If i use the next code in php 5.3</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>then the $a=array(2,4,6,8,10), in php 5.2 we need construction like</p>

<pre><code>array_filter($a,create_function('$e','return $e % $nr == 0;'));
</code></pre>

<p>Where to use the "use($nr)" in create_function?</p>

<p>Thank you!</p>
