addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [houston-php] Mix html with php vs php string.

From: user 4.
Sent on: Wednesday, October 13, 2010 1:58 PM
Oh, absolutely mix the two of them.  Even better, declare all of your
variables and do your calculations at the top:

<?php
  $heading = 'Hello World';
?>


> 
> <h3><?php echo 'Hello World'; ?></h3>
> 
> 
>
> 2. php string
> <?php
> strhtml = '';
> strhtml .= '';
> strhtml .= '';
> strhtml .= '<h3>Hello World</h3>';
> strhtml .= '';
> strhtml .= '';
> echo strhtml;
> ?>
>
> thanks
>
> Jonny


-- 
Sean T. Dundon
[address removed]

Our Sponsors

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