this time online business , expain about variable . Scope can be defined as the range of availability a variable has to the program in
which it is declared. PHP variables can be one of four scope types:
· Local variables
· Function parameters
· Global variables
· Static variables
Local Variables
A variable declared in a function is considered local; that is, it can be referenced
solely in that function.Consider this listing:
$x = 4;
function assignx () {
$x = 0;
print "\$x inside function is $x.
";
}
assignx();
print "\$x outside of function is $x.
";
Execution of the above listing results in:
$x inside function is 0.
$x outside of function is 4.
As you can see, two different values for $x are output. This is because the $x located
inside the assignx function is local in nature. Modification of its value has no bearing
on any values located outside of the function. On the same note, modification of the
$x located outside of the function has no bearing on any variables contained in
assignx().
bookmark here
My Blog List
Search Engine Optimization and SEO Tools
LinkAlizer makes it easy and fast for you to to find link exchange partners and increase traffic.
Subscribe to Business by Email
Duane Gartman - Seo Friendly Web Directory
Web Directory
SEO Master Iftekhar khan General Web Directory
Free Link Exchange Directory Submit Links
Submit Links To WahmD.Com Free Link Directory Submission Exchange Free web directory
Submit Links To WahmD.Com Free Link Directory Submission Exchange Free web directory
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment