There are cases when you want to use something like #2, but in general PHP code should look like PHP and HTML should look like HTML.
On Tue, Oct 12, 2010 at 5:50 PM, Jonny Nguyen <[address removed]>
I need your input regarding mix html with php or just create a php string. See example below.
1. Html mix with php
<h3><?php echo 'Hello World'; ?></h3>
2. php string
strhtml = '<html>';
strhtml .= '<head></head>';
strhtml .= '<body>';
strhtml .= '<h3>Hello World</h3>';
strhtml .= '</body>';
strhtml .= '</html>';
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Jonny Nguyen ([address removed]) from Houston PHP Users Group.
To learn more about Jonny Nguyen, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]