Welcome! Log In Create A New Profile

Advanced

php "here" documents

Posted by nyokahombe 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
php "here" documents
August 11, 2013 11:31PM
Hi Guys,

I did understand the use of php here documents but I would like to know any strong reasons of using them in php.

Thanks

Nyoka
avatar
Mac
Re: php "here" documents
August 12, 2013 07:46AM
It is more a choice than anything else, but it makes the layout and reading of code easier because you will use less echo statements.
Re: php "here" documents
August 12, 2013 03:35PM
Thanks Mac. It makes sense. I just thought as well maybe they wanted to copy the python doc structure when they implemented the feature.
Re: php "here" documents
August 14, 2013 05:33AM
It also makes things a lot easier when it comes to string escape sequences, especially since we have to encapsulate the html code inside the php code.
Sorry, only registered users may post in this forum.

Click here to login