print <<TXT in PHP, like in Perl?

From: Date: Fri, 31 Mar 2000 19:39:06 +0000
Subject: print <<TXT in PHP, like in Perl?
Groups: php.dev 
Request: Send a blank email to php-dev+get-17472@lists.php.net to get a copy of this message
In Perl the following works: print <<TXT; This is a line This is another line This is the last line TXT; How do I do this in PHP? One way is: print " This is a line This is another line This is the last line "; I want to print HTML which has quotes in it, so the above is not too convenient because I would need to escape every single quote. Liviu

« previous php.dev (#17472) next »