note 90949 deleted from language.oop5.magic by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 13:05:15 +0000 |
| Subject: | note 90949 deleted from language.oop5.magic by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155666@lists.php.net to get a copy of this message | ||
Note Submitter: IMSoP
----
jahanaddison6 - what would you expect it to do?
There are two ways of calling those functions:
<?php
$ex = new Example(); // creates a new Example object; __construct() is run, but the return value is
discarded
$ex->Test(); // invoke Test() method on Example object; returns true
Example::Test(); // treats Test() as a static function, so __construct is not called; returns true
?>