Re: Stupid question
| From: | noginn | Date: | Wed, 17 Mar 2004 21:04:26 +0000 |
| Subject: | Re: Stupid question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180748@lists.php.net to get a copy of this message | ||
Jeff McKeon wrote:
I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this-> What does this do? I know it has something to do with classes but can't quite get my head around it. Thanks, Jeff I am not expert but I have a general idea of what it is and used for, for example you have a class named test.Inside that class you have a function named testfunc. If you were going to call that function you would use $this->testfunc(); *I think* I am sure you will get some more detailed explanations from the experts though :) I am new here so thought I would start to contribute.