Re: quote problem

From: Date: Sat, 03 Mar 2001 01:49:54 +0000
Subject: Re: quote problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42416@lists.php.net to get a copy of this message
From: <PeterOblivion@aol.com> > Hey, > > Wondering if any of you can help me with a problem > > im trying to get something like this into $var : > > <title>blah "blah" blah</title> > > How can I do it if its multi lined > > Someone suggested > content = END << > BLAH BLAHC > BLHAC > END; > > but that doesnt seem to work with quotes > > Thanks > - Peter > You need to escape the quote characters by prefixing them with a backslash. <?php $title = "<title>blah \"blah\" blah</title>"; ?> Cheers Simon Garner

« previous php.general (#42416) next »