Re: Using '

From: Date: Wed, 22 Sep 2004 16:44:56 +0000
Subject: Re: Using '
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-197587@lists.php.net to get a copy of this message
Just remember to make sure that the closing EOD; is flush with the left margin an that there are NO spaces and NO other characters to the left of it or PHP will give you a PARSE error On Wed, 22 Sep 2004 11:56:54 -0400, François Moreau <phpfrancois@grillonweb.com> wrote: > Hi Juan, > You might consider using the Heredoc syntax, as presented here : > http://www.php.net/manual/en/ > language.types.string.php#language.types.string.syntax.heredoc > > Your code snippet would look like this and do exactly what you had > intended : > > $html = <<<EOD > <HTML> > YOUR HTML > </HTML> > EOD; > > François > > Le 04-09-22, à 11:55, Juan Pablo Herrera a écrit : > > > > > Hi! > > i have: > > $html = ' > > <html> > > MY HTML > > </html> > > '; > > Inside of my html i used ', this produced a parse error, how can i > > solved > > it?. > > Regards, > > JP > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#197587) next »