View Single Post
Old 02-07-2013, 02:39 PM   PM User | #3
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,741
Thanks: 4
Thanked 2,465 Times in 2,434 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Quote:
Originally Posted by TFlan View Post
You're not really asking anything - or anything that is clearly a question.
Not only that, they are showing code that promotes *very* sloppy programming practices.

So to actually answer your question: scope is defined by the context in which you have declared your variables.

The code itself, is completely useless. The function signature is incorrect, it has no semi-colon delimiters, and the use of global is entirely incorrect (global is *not* an assignment operation). So many a syntax errors this has.

This does kind of raise question as to why this thread was posted in the first place though. . .
__________________
PHP Code:
header('HTTP/1.1 420 Enhance Your Calm'); 
Fou-Lu is offline   Reply With Quote