FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » ampersand help
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: ampersand help [message #175320 is a reply to message #175311] Sun, 04 September 2011 20:55 Go to previous message
A is currently offline  A
Messages: 17
Registered: June 2011
Karma:
Junior Member
> Can someone tell me why this line of code doesn't work for replacing
> an ampersand?
> $newstring = str_replace("&", "and", $newstring);

There is no problem in that particular line. Perhaps the problem is
elsewhere for example in initialization of $newstring ?

What exactly are you trying to do? And what is the content of $newstring?

Maybe a dumb question but are you trying to do this instead?
$newstring = str_replace("&", "&", $newstring);
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Newbie: very basic jquery drag drop
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 09 14:44:22 GMT 2024

Total time taken to generate the page: 0.03440 seconds