I have code where [unitsymbol] is replaced by the user's currency symbol(usually a $), but after the code sticks in the $, the $number (i.e $99.99) is seen as a variable and it only shows .99
How can i fix this?
use backslash in front $number = "\$99.99";
or use single ' instead of " everything between ' isn't interpreted
i found what my problem was. I was running the text through the replace routine several times, so when the dollar sign went in the first time, the next time through it was seen as a variable. Thanks for the help though.
Addslashes()