In a PHP project, I have:
$string = "1,555"; str_replace(',', '', $string); echo $string; //is still 1,555
str_replace does not remove the comma. If I var_dump. I get string(5) "1,555"
string(5) "1,555"
Any ideas? I just need to remove the commas so that I can calculate.
$string = str_replace(',', '', $string);
Source: https://habr.com/ru/post/920696/More articles:What is wrong with access ()? - cPMD-Plugin in Eclipse / Juno is not installed on the market - eclipseError "Invalid Remote: Origin" when importing into Eclipse (m2eclipse, eGit) - gitaccess () Security hole - cJava Eclipse: programmatically import plugins and snippets - javadjango tastypie: getting additional m2m values ββusing an intermediate model - djangocheck stored procedure in MySql Workbench - mysqlHaskell Parsec Parser for the meeting [...] - parsingConvert cells to double - doublereading blob image from MySQL database - c #All Articles