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 <[EMAIL PROTECTED]> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php