I am using this formatting so that the total returns the correct value. But this line returns me without the pennies. The value has to return for example: 23.99 and is returning 23.00.
How to solve?
$total = number_format($total,2, ',' , '.');
echo '<tr>
<td colspan="5">TOTAL</td>
<td><hr> '.$total.' </td>
</tr>';