Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3062

Re: ampersand help

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: ampersand help
Date 2011-09-02 22:59 -0400
Organization A noiseless patient Spider
Message-ID <j3s579$g2d$1@dont-email.me> (permalink)
References <7a650168-4b19-4033-b73d-3e96d33ce531@h6g2000yqe.googlegroups.com>

Show all headers | View raw


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@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ampersand help bob <bob@coolgroups.com> - 2011-09-02 18:00 -0700
  Re: ampersand help Jerry Stuckle <jstucklex@attglobal.net> - 2011-09-02 22:59 -0400
  Re: ampersand help "Twayne" <nobody@devnull.spamcop.net> - 2011-09-04 10:53 -0400
  Re: ampersand help "A" <a@a.a> - 2011-09-04 22:55 +0200

csiph-web