perchè sbattersi tanto?

se il prezzo è dato da una stringa tipo
codice:
€ 100,70
allora conviene togliere solo il superfluo

tipo in php
Codice PHP:
$str="€ 100,7";
echo 
str_replace("€","",$str); 
se javascript
codice:
var str="€ 100,7";
alert(str.replace("€",""));