+ 1

how to make a output in php like this price1 price2 price3 total

10th Oct 2016, 5:19 PM
Karlo Capalaran
Karlo Capalaran - avatar
2 Réponses
+ 2
<?php $price1 = $_get[input1]; $price2 = $_get[input2]; $price3 = $_get[input3]; function total($price1, price2, price3){ $total = $price+$price2+$price3; return $total; }
11th Oct 2016, 4:35 PM
élyas
0
$price1 = 10; $price2 = 20; $price3 = 30; $total = $price1 + $price2 + $price3; echo "price1: $price1<br>"; echo "price2: $price2<br>"; echo "price3: $price3<br>"; echo "total: $total";
2nd Nov 2016, 3:08 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar