Forum Moderators: coopster

Message Too Old, No Replies

scope

         

scorpion

6:55 am on Mar 11, 2003 (gmt 0)

10+ Year Member



If you have a <?php?> block in a PHP file, is the variable inside automatically available to another php block within the same file or not? If not, is there a way to make it available to any code in the file without using sessions?

nosanity

7:31 am on Mar 11, 2003 (gmt 0)

10+ Year Member



Yes. It is, UNLESS it was placed inside a function, or class. In which case, then you would need to learn about the "global" statement.

noSanity