I am running a script to caliculate values from user input.
The numbers are currency and often have commas.
I need to remove all dollar signs and all commas from the strings to allow the mathematical functions to work.
Is there a simple function that can facilitate this. I have looked at several options and (trim, rtrim, str_replace, ereg_replace, etc.) and I dont know if there is something more simple.
I need to find a function that simply elimates given characters from a string. Specifically "$" and ",".