0

Here is the code :

<tbody id=cobrancas-tbody><?php for ($i = 0; $i < count($cliente->cobrancas); $i++) : ?>
    <?php if ($cliente->cobrancas[$i]->valorpago > 0) continue ?>
        <tr class="<?php echo interpretar_cobranca($cliente->cobrancas[$i]) ?>"> 
            <td class=acoes>
                <form action=# method=post>
                    <input type=hidden name=index value=<?php echo $i ?> />
                </form>
                <?php echo $cliente->cobrancas[$i]->nossonumero ?>
                <a href=# class=boleto title="Imprimir segunda via"><img src=http://findicons.com/files/icons/753/gnome_desktop/64/gnome_printer.png     height="32"                 width="32"></a>
            </td>

How can i Stop the Print to Break and not Continue?

RPichioli
  • 3,245
  • 2
  • 25
  • 29

1 Answers1

0

just use break:

<?php if ($cliente->cobrancas[$i]->valorpago > 0){
    echo $cliente->cobrancas[$i]->valorpago;
    break;
}?>

edited according to OP's comments.

low_rents
  • 4,481
  • 3
  • 27
  • 55