I have a text database:
base.txt:
Product 1#122.00
Product 2#158.50
and code displaying the products:
$lines = file(base.txt);
foreach ($lines as $rivit) {
$dat = explode("#", $rivit);
echo "Product: $dat[0], Prize: $dat[1]<br>\n";
}
Now my problem is how to sum all the prizes (total) to display?
Thanks in advance!