string_replace &raquo

I have the following as XML output for \[code\]$result->label\[/code\] in PHP:\[code\]SimpleXMLElement Object([0] => Page Title ? Site Title)\[/code\]Now I need to replace the ' ? Site Title' with nothing ('') but I cannot get it to work:\[code\]$result_title = str_replace(' ? Site Title','',$result_title); // Doesn't work$result_title = str_replace(' &raquo Site Title','',$result_title); // Doesn't work$result_title = str_replace(' » Site Title','',$result_title); // Doesn't work$result_title = str_replace(' Site Title','',$result_title); // Works\[/code\]The last one works so I know that it is just the '&raquo' that is causing trouble.Anyone have any ideas?
 
Back
Top