rendered paste body<?php
function best_deal($priece_1,$amount_1,$priece_2,$amount_2){
$per_amount_1 = $price_1 / $amount_1;
$per_amount_2 = $price_2 / $amount_2;
return ($per_amount_1 < $per_amount_2);
}
$litres_1 = 1.0;
$priece_1 = 1.59;
$litres_2 = 1.5;
$priece_2 = 2.09;
if (best_deal($price_1,$litres_1,$price_2,$litres_2)) {
print ("The best deal is better!<br>");
else
print ("The second deal is better!<br>");
}
?>
Parse error: syntax error, unexpected T_ELSE in C:\wamp\www\PHP15.php on line 15