[ create a new paste ] login | about

Link: http://codepad.org/Zo9X2PY5    [ raw code | output | fork ]

PHP, pasted on Jun 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
# Get All Payment 
(int)$sum_price=0;
$sum_price_product = explode('|',"1|2|3|4|5");
$spo = explode('|',"1|2|3|4|5");
foreach($sum_price_product as $key=>$spp)
{
if($spp!='')
{
$gpp = 5;
(int)$price_per_sum = $spo[$key]*$gpp;
$sum_price = $sum_price + $price_per_sum;
echo $sum_price;
}
}
?>


Output:
1
515305075


Create a new paste based on this one


Comments: