PDA

View Full Version : PHP replace



Koolguy
November 19th, 2000, 16:25
I need to replace ' with ' from a form so it can be entered into a database. What would be the code to use?

ashben
November 19th, 2000, 22:22
PHP4 Code :
str_replace ("'", "&#39", $anystrvar)

More Info :
http://www.php.net/manual/function.str-replace.php