Ver originalforeach( $el_loop as $numero=>$mi_loop ) {$con_o_sin_coma = (end($el_loop)==$mi_loop) ? ")" : "),"; /* Código */}