[PHP-DEV] print <<TXT in PHP, like in Perl? From: Liviu Chiriac (lchiriac <email protected>)
Date: 03/31/00

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>