John Nichel wrote:
John Clegg wrote:

Hi

I have just realised that I have to delimit the following characters so I can use preg_replace:
/
?
[
]


Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database.

eg.

\?

Any ideas

John


Maybe addslashes(), but I don't know if that will escape all the characters you need.


Check that...addslashes() won't escape [].


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to