note 15873 added to language.oop

From: Date: Sat, 06 Oct 2001 06:07:19 +0000
Subject: note 15873 added to language.oop
Groups: php.notes 
Request: Send a blank email to php-notes+get-18629@lists.php.net to get a copy of this message
You can set object properties to have default values. As long as those values don't come from some other variable. for example class foo{ var $test1 = "test"; var $test2 = "test2"; } would be legal but class foo{ var $test1 = $GLOBALS[PHP_SELF]; var $test2 = $GLOBALS[HTTP_HOST]; } would not be legal -- http://www.php.net/manual/en/language.oop.php http://master.php.net/manage/user-notes.php?action=edit+15873 http://master.php.net/manage/user-notes.php?action=delete+15873 http://master.php.net/manage/user-notes.php?action=reject+15873

« previous php.notes (#18629) next »