<table border="1">
    <tr>
        <th>Tipo</th>
        <th>Descrição</th>
        <th>Valor</th>
    </tr>
    <?php foreach ($dados as $linha): ?>
        <tr>
            <td><?= $linha['tipo'] ?></td>
            <td><?= $linha['descricao'] ?></td>
            <td><?= number_format($linha['valor'], 2, ',', '.') ?></td>
        </tr>
    <?php endforeach; ?>
</table>
