Ask about general coding issues or problems here.
4 posts • Page 1 of 1
- New php-forum User
- Posts: 164
- Joined: Tue Aug 27, 2002 8:25 pm
- Location: Ontario, Canada
Xerpher wrote:About the "global $this;", I know that you need touse global inside something like a function, but when else is it used? because that codes' global is certainly not in a function.
I read this posta bit more carefull this time, and I must agree that I don't see any use for the "THIS LINE":
Code: Select all
global $this; //-- THIS LINE
print "this equals: $this<BR>";
$this = 1;
print "this equals: $this<BR><BR><BR>";
It doesn't do any harm though, so leaving it there is no problem, it simply does nothing (or i'm wrong )
Who is online
Users browsing this forum: No registered users and 3 guests