Page 1 of 1

check string

Posted: Wed Jan 11, 2006 8:03 pm
by pedroz
Could you please tell me how can I check if a string has the following chars?

\ and " and '

I wrote some code but it is not working with \ and ' chars... :(

Re: check string

Posted: Wed Jan 11, 2006 8:28 pm
by hawleyjr
pedroz wrote:I wrote some code but it is not working with \ and ' chars... :(
Can we see it?

Posted: Wed Jan 11, 2006 9:27 pm
by timvw
That's because \ and ' and " usually have a special meaning in a string... Everything you need to know (and more) is available at: http://www.php.net/string.