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 #175312 is a reply to message #175311] Sat, 03 September 2011 02:59 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/2/2011 9:00 PM, bob wrote:
> Can someone tell me why this line of code doesn't work for replacing
> an ampersand?
>
> $newstring = str_replace("&", "and", $newstring);

Works just fine here. What's in $newstring, both before and after the call?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Mon Oct 07 00:20:41 GMT 2024

Total time taken to generate the page: 0.05715 seconds