Re: how to fight backslash in char variable???

From: Date: Tue, 20 Aug 2002 12:29:52 +0000
Subject: Re: how to fight backslash in char variable???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113315@lists.php.net to get a copy of this message
On Tuesday 20 August 2002 20:13, Maris Kalnins wrote: > Hi guys! > > Situation: > > $intext = "blablabla ' blablabla"; > then this $intext is passed to out.php (as parameter out.php?intext=...) > > the problem is that from out.php I need to echo this $intext but I get: > > blablabla \' blablabla > > the question is.. how to fight this backslash out of there? If you want to disable this behaviour: php.ini -> magic_quotes_gpc Otherwise use stripslashes() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The idle mind knows not what it is it wants. -- Quintus Ennius */

« previous php.general (#113315) next »