'engine_capacity' => $engine_capacity, ]); } protected function getYearsToFilter($min_year, $max_year) { $years = []; while((int)$max_year >= (int)$min_year) { array_push($years, ['year' =>(int)$max_year]); $max_year--; } return $years; } protected function getPricesToFilter($min_price, $max_price) { $prices = []; while((int)$max_price >= (int)$min_price) { array_push($prices, ['price' => (int)$max_price]);
$_GET = [ 'id' => '3', 'utm_source' => 'avby', 'utm_medium' => 'news', 'utm_campaign' => '2612', 'utm_content' => 'outlander', ];