Hi,
I've created an IF statement:
<?
if ($type_class =="Economy") {
$ticket_cost = 150;
}
if ($type_class =="Business") {
$ticket_cost = 200;
}
if ($type_class =="First Class") {
$ticket_cost = 300;
}
$air_total = $tickets * $ticket_cost; // calculate tickets * ticket cost
$air_tax = ($air_total * 17.5)/100; // calculate VAT on total
$overall_total = $air_total + $air_tax; // calculate total price with VAT
?>
Which outputs a total ticket cost, tax cost and overall total. How do I enable these results to be shown to 2 decimal places?
Thanks
Chris