Str_replace not working


#1

Should I be able to match a part of a string and remove spaces from it? For example

$Headline = str_replace(“New Toyota Camry”, “NewToyotaCamry”, $Headline);

Headline is ‘Welcome to the New Toyota Camry to out fleet’

If so why would it not be working?


#2

I already answered you on the other forum.


#3

No idea what the answer you were given was, but you are doing it wrong for your question.