1<?php
2
3class Example
4{
5    public function even($numbers)
6    {
7        $numbers = array_filter($numbers, function($number) {
8            return $number % 2 === 0;
9        });
10
11        return array_merge($numbers);
12    }
13}