Date: 03/31/00
- Next message: seth.iorio <email protected>: "[PHP-DEV] PHP 4.0 Bug #3996: base64_decode function isn't working fine!"
- Previous message: David_Searles <email protected>: "[PHP-DEV] Bug #3995: unset($array[$index]) yields incorrect results"
- Next in thread: Lars Torben Wilson: "Re: [PHP-DEV] print <<TXT in PHP, like in Perl?"
- Reply: Lars Torben Wilson: "Re: [PHP-DEV] print <<TXT in PHP, like in Perl?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: seth.iorio <email protected>: "[PHP-DEV] PHP 4.0 Bug #3996: base64_decode function isn't working fine!"
- Previous message: David_Searles <email protected>: "[PHP-DEV] Bug #3995: unset($array[$index]) yields incorrect results"
- Next in thread: Lars Torben Wilson: "Re: [PHP-DEV] print <<TXT in PHP, like in Perl?"
- Reply: Lars Torben Wilson: "Re: [PHP-DEV] print <<TXT in PHP, like in Perl?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

