note 65466 added to language.oop5

From: Date: Mon, 01 May 2006 13:06:24 +0000
Subject: note 65466 added to language.oop5
Groups: php.notes 
Request: Send a blank email to php-notes+get-110269@lists.php.net to get a copy of this message
Members can be added to instances on the fly. Simply use $apple= new fruit(); $pear=new fruit(); $apple->color='red'; $pear->smell='sweet'; and $apple only will contain a member (field) color, but $pear only will contain a field smell. It is not clear however whether members an be added to the class at large on the fly. ---- Server IP: 66.163.161.117 Probable Submitter: 213.103.131.71 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.php Edit -- http://master.php.net/note/edit/65466 Del: integrated -- http://master.php.net/note/delete/65466/integrated Del: useless -- http://master.php.net/note/delete/65466/useless Del: bad code -- http://master.php.net/note/delete/65466/bad+code Del: spam -- http://master.php.net/note/delete/65466/spam Del: non-english -- http://master.php.net/note/delete/65466/non-english Del: in docs -- http://master.php.net/note/delete/65466/in+docs Del: other reasons-- http://master.php.net/note/delete/65466 Reject -- http://master.php.net/note/reject/65466 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110269) next »