Welcome!
Log In
Create A New Profile
Home
>
ICT2613 Sem 2
> Topic
Advanced
php "here" documents
Posted by
nyokahombe
Announcements
Last Post
SoC Curricula
09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment
02/13/2017 07:59AM
School of Computing Short Learning Programmes
11/24/2014 08:37AM
Unisa contact information
07/28/2011 01:28PM
Forums
Messages
New
nyokahombe
php "here" documents
August 11, 2013 11:31PM
Registered: 10 years ago
Posts: 21
Rating: 0
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
Reply
Quote
Mac
Re: php "here" documents
August 12, 2013 07:46AM
Admin
Registered: 18 years ago
Posts: 10,001
Rating: 353
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.
Reply
Quote
nyokahombe
Re: php "here" documents
August 12, 2013 03:35PM
Registered: 10 years ago
Posts: 21
Rating: 0
Thanks Mac. It makes sense. I just thought as well maybe they wanted to copy the python doc structure when they implemented the feature.
Reply
Quote
50232819_HvN
Re: php "here" documents
August 14, 2013 05:33AM
Registered: 10 years ago
Posts: 46
Rating: 0
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.
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login