note 90949 added to language.oop5.magic

From: Date: Mon, 18 May 2009 09:54:58 +0000
Subject: note 90949 added to language.oop5.magic
Groups: php.notes 
Request: Send a blank email to php-notes+get-155661@lists.php.net to get a copy of this message
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 ?> ---- Server IP: 92.48.74.199 Probable Submitter: 81.179.240.16 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.magic.php Edit -- https://master.php.net/note/edit/90949 Del: integrated -- https://master.php.net/note/delete/90949/integrated Del: useless -- https://master.php.net/note/delete/90949/useless Del: bad code -- https://master.php.net/note/delete/90949/bad+code Del: spam -- https://master.php.net/note/delete/90949/spam Del: non-english -- https://master.php.net/note/delete/90949/non-english Del: in docs -- https://master.php.net/note/delete/90949/in+docs Del: other reasons-- https://master.php.net/note/delete/90949 Reject -- https://master.php.net/note/reject/90949 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#155661) next »