уже голову поломал, не могу привести к нужному виду. Есть массив объектов
$parameters = [
{name: "immovable_type", value: "apartment"}
{name: "count_room", value: "1"},
{name: "count_room", value: "2"},
{name: "count_room", value: "3"}
{name: "cost_from", value: ""},
{name: "cost_to", value: ""},
{name: "city", value: "637640"}
];
мне нужно получить массив вида:
$parameters = [
"immovable_type" => "apartment",
"count_room" => "1,2,3"},
"cost_from" => "",
"cost_to" => "",
"city" => "637640"
];
гуру программирование, помогите)