checks($id_record); $list = []; foreach ($checks as $check) { $list[] = [ 'id' => $check->id, 'text' => $check->content, ]; } echo '