Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3073
| From | "A" <a@a.a> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: ampersand help |
| Date | 2011-09-04 22:55 +0200 |
| Organization | B.net Hrvatska d.o.o. |
| Message-ID | <j40omp$gtr$1@gregory.bnet.hr> (permalink) |
| References | <7a650168-4b19-4033-b73d-3e96d33ce531@h6g2000yqe.googlegroups.com> |
> 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);
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll 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