When using PHP, does it matter where you place the code? Answered
Might seem like a silly question but is it better to place all your PHP code at the top of the page, then echo it where you want it to be, or to keep the code all in one spot?
<?php code goes here at the top ?>
[rest of webpage]
<h2><?php echo ' $random_thing' ?></h2>
<php connect blah blah select blah;
echo ' $random_thing';
Hopefully that makes sense...