Possible Duplicate:
Parse error: syntax error, unexpected T_FUNCTION line 10 ? help?
Reference - What does this error mean in PHP?
This is the code which cause the error.
$remaining = array_filter($allmodels, function ($var) use ($existmodels) {
return !in_array($var, $existmodels);
});
Logic of the code is(below all are arrays)
$remaining = $allmodels - $existmodels;
I think My PHP version is outdated in the server. Is it the problem. How can I create a similar code snippet ?
Thanks