Re: quote problem

From: Date: Sat, 03 Mar 2001 02:20:37 +0000
Subject: Re: quote problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42418@lists.php.net to get a copy of this message
A couple resources to help : http://www.php.net/manual/en/language.types.string.php http://www.zend.com/zend/tut/using-strings.php Each describes the ability to do : $var = '<title>blah "blah" blah</title>'; $var = "<title>blah 'blah' blah</title>"; $var = "<title>blah \"blah\" blah</title>"; And using here doc, <<< , like so : $var = <<<EOD Example of "string" spanning multiple 'lines' using heredoc syntax. EOD; Regards, Philip Olson http://www.cornado.com/ On Fri, 2 Mar 2001 PeterOblivion@aol.com wrote: > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#42418) next »