When inserting
<?php ?>
Chunks into html it is easier for me to do …
<?php ?> some html <?php ?> some html <?php ?> ect.
Is it better to do something like this…
<?php echo "some html" ect. ?>
and if so how much is using the first method going to slow down my code?
The PHP interpreter evaluates only the code between a pair of
<?php ?>tags. While there might be a speed difference (I doubt it), even if one existed the difference would be completely undetectable.I’d go with code readability.