Thread
:
DEFINE and GLOBAL variables in PHP
View Single Post
#
11
(
permalink
)
07-12-2008, 04:16 AM
Miakoda
D-Web Trainee
Join Date: Jul 2008
Posts: 49
Re: DEFINE and GLOBAL variables in PHP
$a = 1; /* global scope */
function Test()
{
echo $a; /* reference to local scope variable */
}
Test();
the value of a in full program will be 1 because that is declare as global scope.
__________________
web design services
free web templates
Miakoda
View Public Profile
Send a private message to Miakoda
Find all posts by Miakoda