On Wednesday, June 26, 2002, at 08:58  AM, John Holmes wrote:

>> I just preg_replace("/\'/","\'",$text) and all was good :o)
> That's what addslashes() is for. It handles single and double quotes,
> backslashes, and nulls, so you won't have any problems...

Plus IIRC it's a C extension so it'll run faster anyway.



Erik Price
Web Developer Temp
Media Lab, H.H. Brown

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

Reply via email to