Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

Echo vs ?><?php html code

Ive been using echo and <?php ?> to put html out in my code, and it just looks messy when there is LOTs to output. So for example:-

echo "<body>This is a test</body>";

Open in new window

or
?><body>This is a test</body><?php

Open in new window


Ive been looking around and some people suggest using a helper class to draw out html and build up the page. Just wondered what everyone else uses/does to export lots of html code in PHP.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonelm54
tonelm54

ASKER

Thank you :-)