The above reply raises an interesting point about variable scope which has concerned me for some time.
If I have something like
<?php $i = 1; ?>
Value of i = <?php $i; ?>
Can I be sure that $i does not lose its value when I escape from php the first time?
I know that $i does seem to retain its value when I escape from php and then return to php later in the same page but I cannot find any guarantee written in the php manual or elsewhere of retention of variable values after escape from php.
Is this indeed part of the php specification or is it something that generally works but may not be 100% reliable?