Backslash in if statement.

I want to add a literal backslash in an if statement, is it possible? The following does not work:
if ($isdisplayarticlewritten[8][$i] == “\” && $isdisplayarticlewritten[8][$i+1] == “-”) {
I get Parse Error:syntax error, unexpected T_NS_SEPARATOR
Somebody help me please it is urgent

Ok found the problem, the double backslash. It needs to be one backslash but still needs to be escaped. Hmm

Sponsor our Newsletter | Privacy Policy | Terms of Service