I want to replace double spaces with single spaces.
I have been able to do this before :
$new_string=str_replace(" "," ",$old_string)
this worked or I thought it did anyway with other strings but I'm guessing there's something in the problem string that I'm not seeing
anyway to get to the point this is what I have:
// $cpu_type comes in from MySQL database as: "Genuine Intel T2300" - note
// the double space after Intel
echo $cpu_type;
$cpu_type = str_replace("\t"," ",$cpu_type);
$cpu_type = str_replace(" "," ",$cpu_type);
echo $cpu_type;
the code above echoes the same before and after the str_replace command. What am I missing? it's definitely two spaces but as you can see I've even tried replacing a tab in case that's what it was... Are there any other characters it could be???