Re: FN-FORUM: PHP Help please
date posted 25th April 2008 09:12
On Friday 25 April 2008 01:14:26 Anthony Cartmell wrote:
> On Thu, 24 Apr 2008 21:55:59 +0100, Richard Cook [EMAIL REMOVED]
>
> wrote:
> > You mean....
> >
> > str_replace("%handling%", "complex handling", "I do love arguments about
> > PHP\'s %handling% of string quoting, when the...';");
>
> You forgot to use stripslashes() again, Richard ;)
Hint to Richard - you do not escape the "other" type of quote.
This seems like a reasonably good tutorial on strings:
http://www.codewalkers.com/c/a/Programming-Basics/PHP-Strings-Primer/
(Although some of the code examples have "<" where it should be "