Re: stripslashes and quoted material

From: Date: Wed, 08 Jan 2003 16:22:42 +0000
Subject: Re: stripslashes and quoted material
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130774@lists.php.net to get a copy of this message
On Wed, 8 Jan 2003, Gerard Samuel wrote: > <a href=\"http://www.apache.org/\" > target=\"_blank\"> > > When trying to apply stripslashes, the slashes remained. So I applied > str_replace('\"', '', $var) and that worked. > Any idea as to why stripslashes would not remove the slashes in the string? stripslashes() will unescape single-quotes if magic_quotes_runtime = Off in your php.ini. If you have magic_quotes_runtime = On, then it will also unescape double-quotes (and backslashes and NULLs). ~Chris

« previous php.general (#130774) next »