note 29172 rejected from language.oop by nicos

From: Date: Wed, 05 Feb 2003 11:35:11 +0000
Subject: note 29172 rejected from language.oop by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43455@lists.php.net to get a copy of this message
Trying to work with a large object dynamically here I've run into the following problem: class test { var $a; var $b; function test() { ... getting data from sql ... $a = mysql_fetch_array($result,MYSQL_ASSOC); foreach($a as $k => $v) { $this->{$k} = $v; } } } This does not work. Though I can reference already set values in the class by the same $this->{$k} dynamic method, they do not seem to set.

« previous php.notes (#43455) next »