ready_phones array foreach phones as key phoneItem array_push ready_ph

1
2
3
4
5
6
7
$ready_phones = array();
foreach ($phones as $key => $phoneItem) {
array_push($ready_phones, $phones_descr[$key] . ':' . $phoneItem);
}
$row->phone = implode(',', $ready_phones);