note 16915 added to language.oop.constructor

From: Date: Mon, 19 Nov 2001 02:02:52 +0000
Subject: note 16915 added to language.oop.constructor
Groups: php.notes 
Request: Send a blank email to php-notes+get-20988@lists.php.net to get a copy of this message
The above example has some nasty "peculiarities" if that's the right word.<br><br> Because of the fact that get_class() returns the classname in lowercase your other constructors need to be in lowercase as well.<br><br> There's also a "$" missing in front of num_args in the second expression of that for-loop. So the line should be:<br><br> for($i=0;$i<$num_args;$i++) { -- http://www.php.net/manual/en/language.oop.constructor.php http://master.php.net/manage/user-notes.php?action=edit+16915 http://master.php.net/manage/user-notes.php?action=delete+16915 http://master.php.net/manage/user-notes.php?action=reject+16915

« previous php.notes (#20988) next »