Andy89: Problem mit strlen und substr

Beitrag lesen

Hallo,

dieser Code
  <?php do {
$ausgabekopf =  $row_qcount['anzahl'].'DS'.$row_qcount['code'].'<br>';
$ausgabekopf_1 = substr($ausgabekopf, 0, strlen($ausgabekopf) - 4);
echo $ausgabekopf_1;
 } while ($row_qcount = mysql_fetch_assoc($qcount));  ?>

Gibt folgendes aus:
3DS in Tabelle bla <br>
4DS in Tabelle xya <br>
2DS in Tabelle abc <br>

ich möchte da letze <br> nicht haben, was mache ich falsch?

Danke
Andy