Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Replace a character in a string variable
June 30, 2006, 2:55 pm
rate this thread
I have a variable which is created from an input form.
After concatenating the input I want, I end up with a variable named
$all which looks like this :
I want to take this string and replace all the commas with this :
So - I tried this :
$newall = str_replace($inside, ",", $all);
But - it doesn't work.
What am I doing wrong ?