Re: PHP Syntax Notation
| From: | Jasper Bryant-Greene | Date: | Tue, 27 Sep 2005 20:19:12 +0000 |
| Subject: | Re: PHP Syntax Notation | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223309@lists.php.net to get a copy of this message | ||
Lowell Herbert wrote:
Thanks for all the responses. I understand that $site is an instance of the class CSite, and that Run() is a function in that class. I do not understand what the operater "->" means, and what meaning the result of the function Run() has to $site. Clarification anyone?The operator -> in this context ( $site->Run() ) sort of means "the function Run() inside the object $site". The result of the function (if there is one) is thrown away, because you don't assign it to anything. If you did this then it would be assigned to something: $result = $site->Run(); -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/