Re: Re: Simple Question
| From: | J.F.Kishor | Date: | Thu, 13 Dec 2001 05:25:48 +0000 |
| Subject: | Re: Re: Simple Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77547@lists.php.net to get a copy of this message | ||
hello,
I don't know how for I got your problem but, If you trying to
print a string like this
eg : print "This is Tom's book";
In the above case you need not use a back slash to escape the single quote
coz' php accepts single quote's within a double quote.
Otherwise you can use stripslashes()
which works like this.
string stripslashes(string str);
Returns a string with backslashes stripped off. (\' becomes ' and so
on.) Double backslashes are made into a single backslash.
regards
- JFK
> >"Tom Ray" <tom@blazestudios.com> wrote in message
> >news:3C1824A4.4070609@blazestudios.com...
> >
> >>I have a quick question that I haven't been able to find the answer to
> >>yet. I've made a couple of guest books via PHP but the biggest problem
> >>I'm having is if any one inputs a ' or " or anything like that, the
> >>output in the book shows the stupid \ for the escape. So the word
> >>"Tom's" looks like "Tom\'s" Is there anyway for me to
> >>handle those
> >>characters so the backslash doesn't appear in the output?
> >>
> >>Thanks,
> >>Tom
> >>
> >
> >
> >
>
>