addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Mix html with php vs php string.

From: Jonny N.
Sent on: Tuesday, October 12, 2010 5:50 PM
I need your input regarding mix html with php or just create a php string. See example below.

1. Html mix with php
<html>
<head></head>
<body>
<h3><?php echo 'Hello World'; ?></h3>
</body>
</html>

2. php string
<?php
strhtml = '<html>';
strhtml .= '<head></head>';
strhtml .= '<body>';
strhtml .= '<h3>Hello World</h3>';
strhtml .= '</body>';
strhtml .= '</html>';
echo strhtml;
?>

thanks

Jonny





People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy