RE: Replacing Registered Symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux