RE: [PHP] Replacing Registered Symbol

From: Date: Fri, 18 Jun 2010 20:52:03 +0000
Subject: RE: [PHP] Replacing Registered Symbol
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306254@lists.php.net to get a copy of this message
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

« previous php.general (#306254) next »