function getLessonDetails($idCli, $idMob) { $lesson = new lesson(); $list_lesson_details = $lesson->list_lesson_details($idCli, $idMob); foreach ($list_lesson_details as $item) { $html .= '<label class="control-label" style="text-align:center;">'; $html .= '• ' . $item['interval']; $html .= '</label>'; } echo $html; }