I got this multiple array named $files[], which consists of keys and values as below :
$files[]
[0] => Array ( [name] => index1.php [path]
You can use create_function() in 5.2.x
$y = 5; $func = 'return $x > ' . $y . ';'; $f = create_function('$x', $func); $numbers = range(0, 10); $result = array_filter($numbers, $f); print_r($result);
which outputs
Array ( [6] => 6 [7] => 7 [8] => 8 [9] => 9 [10] => 10 )