I used to program in ASP vs. PHP. I NEED HELP ON THE CONCEPT OF SCOPE OF VARIABLES -- HOW TO -- IN PHP.
In asp and visual basic variables that you set values to INSIDE A FUNCTION are invisible outside of that function. So if I assign a value $theValue = "hello"; inside the function, and then try:
echo $theValue;
-- it won't work. In ASP you would declare that variable OUTSIDE THE FUNCTION:
dim theValue
and then it would work.
How do you set a global scope in PHP?
Thanks very much and I'm sure this is a question many beginners ask.
Sam Fullman
Compass Point Media