- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
- Parse error: syntax error, unexpected ';' in /in/hZA2N on line 14
Process exited with code 255.
<?php
$fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple");
function test($item)
{
if($item == 'orange')
return false;
return true;
}
($fruits = array_filter($fruits, 'test');
var_dump($fruits);