$this?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Rhine_
Registered User
Posts: 127
Joined: Sat Mar 15, 2008 4:45 pm

$this?

Post by Rhine_ »

What does the variable $this do?
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: $this?

Post by Erik Frèrejean »

Its a reference to the object of the class you're working in at the moment of the call.
See example 5. Here will $this point at the class "SimpleClass", which has a variable "var"
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
Locked

Return to “[3.0.x] Support Forum”