Re: Using '

From: Date: Wed, 22 Sep 2004 15:56:54 +0000
Subject: Re: Using '
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197577@lists.php.net to get a copy of this message
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


« previous php.general (#197577) next »