How to get non zero positive numbers form array in php [closed]
You could use following code
$output = array_map($input, function ($value) {
if (is_numeric($value) && $value > 0) {
return $value;
}
});