Str_replace not working


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?


I already answered you on the other forum.


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