<td> <input type="text" name="general[ord]" class='form-control' value='<?php echo isset($answer->ord) ? $answer->ord : ''; ?> ' /> </td> </tr> <?php foreach ($answer_langs as $answer_lang) { ?> <tr> <th><?php echo varlang('answer-in-'); ?> <?php echo \WebAPL\Language::getItem($answer_lang->lang_id)->name; ?> </th> <td> <input type="text" name="answer[<?php echo $answer_lang->id; ?> ]" class='form-control' value='<?php echo isset($answer_lang->title) ? $answer_lang->title : ''; ?> ' /> </td> </tr> <?php } ?>