From: Rick Dwyer

> I'm trying to replace the registered ((r)) symbol from a variable via
PHP.
> 
> The variable $mystring is set to a MySQL field that contains the value

> "This Is The Registered Symbol (r)".
> 
> Using the following, I try to replace the symbol, but it persists:
> 
> $moditem = str_replace("(r)","","$mystring");
> 
> I tried replacing the symbol in the above syntax with the HTML  
> equivalent but no luck.

It depends on what you want it for. For a URL, the HTML encoding is
'®' '®' or '%AE'.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to