PHP: What is used to cancel out ' ' in ' ' (see below)?

No, you use backslashes:

'$_SERVER[\'REMOTE_ADDR\']'

Alternatively, you could put it in double quotes:

"$_SERVER['REMOTE_ADDR']"
(In this one, as the quotes are differnet, the " ' " will be treated as the string - this also works the other way round. ie. having it all in single quotes and using double quotes in the string).

--
Hope this helps
 
Back
Top