echo '<td>'; foreach ($justif_col as $justif) { if ($justif == null) continue; echo $justif->getNom(); if (!$justif_col->isLast()) { echo ', '; } } echo "</td>"; //donnees motif echo '<td>'; foreach ($motif_col as $motif) { if ($motif == null) continue; echo $motif->getNom(); if (!$motif_col->isLast()) { echo ', '; } } echo "</td>"; echo '</tr>'."\n"; } echo '</tbody>'; //echo '</tbody>'; echo '</table>'; echo '</form>';