okay, its a simple question, but I have no idea how to search for this. How can I put a forward slash within quotes. I have a problem, a string gets converted to "xyz/" and is then put in an sql querry, how can I detect the slash, I cant use: strpos($encPass, "\" ) > -1 Since the \ makes the quotation a non surrounding quotaion.. so what can I use to detect a forward slash?
Use "\\" That will work. The first slash escapes the second one. EDIT: And oh, since you are looking for xyz/, you might be trying "/" instead of "\\" ??
You are asking about detecting slashes yet your example is for a backslash? Check for backslash: strpos($encPass, '\\') Check for slash: strpos($encPass, '/')