Replacing period decimal with a comma decimal
Hi, I have been working on this for a while and came up with this code so far:
<?php
$number = $row_rspricetable['price'];
$row_rspricetable['price'] = number_format($number, 2, ',', '.');
?>
This successfully replaces the period of the first record with a comma, but all following values keep the period. I tried with if-statement, while loops and foreach statements, but could just not get it to work.
This is the link to one of the product pages: http://www.segufix.com/detail_en.php?recordID=13
Would anyone be able to help me out?