Jump to content

php equivalent of <<END in perl?


robbster

Recommended Posts

Hi,

 

Is there a php equivalent of <<END in perl? In perl I'd say

print FILEHANDLE <<END;

This is a test

bla bla

END

 

And that text would be written in some file.

I want to do this in php. Any ideas? I'm creating an html file on the fly and I don't

want to assign my html code to say $x and then say

fwrite($handle,$x);

or backslash all the double quotes and single quotes.

Anyone have any ideas someone can share?

 

Thanks.

 

 

Link to comment
https://forums.phpfreaks.com/topic/94597-php-equivalent-of/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.