if I have something like below (very basic but I hope you get what I mean)
.
.
html code
.
.
<?php
$string=true;
.
.
?>
.
.
more html
.
.
<?php
if ($string)
.
.
?>
Assuming the page has not been output, Will the value of $string still be available from the previous <?php or does it have to be set up again?
Your question is a little unclear, but I assume you mean like this: