Re: PHP Syntax Notation
| From: | Lowell Herbert | Date: | Tue, 27 Sep 2005 20:29:46 +0000 |
| Subject: | Re: PHP Syntax Notation | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223311@lists.php.net to get a copy of this message | ||
On Sep 27, 2005, at 4:19 PM, Jasper Bryant-Greene wrote:
Lowell Herbert wrote:Thank you for your clear explanation!!! LowellThanks 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();