942,959 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 153
  • PHP RSS
Jul 30th, 2010
0

Assign chuck of html to a php variable

Expand Post »
I want to assign a whole chunk of html content to a php variable. I was wondering if anybody knows of a way other than catenating manually. It's a huge chunk of html full with escape characters so don't want to do '' or "" thing.

Any help is appreciated.
Reputation Points: 11
Solved Threads: 1
Newbie Poster
solahere is offline Offline
23 posts
since Jul 2009
Jul 30th, 2010
0
Re: Assign chuck of html to a php variable
got the answer
have to use <<< EOT
EOT;
Reputation Points: 11
Solved Threads: 1
Newbie Poster
solahere is offline Offline
23 posts
since Jul 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP mail
Next Thread in PHP Forum Timeline: Style text in a text area...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC