Object/Class problem

From: Date: Wed, 17 Oct 2001 15:18:20 +0000
Subject: Object/Class problem
Groups: php.general 
Request: Send a blank email to php-general+get-71340@lists.php.net to get a copy of this message
Hello, I have a really stupid problem, can anybody explain me why this code doesn't work? The output on the website is "worldworld" in stead of "hello world". Why? Thanks, Jürgen Sturm $test = new Test(); $test->$v1 = "hello "; $test->$v2 = "world"; echo $test->$v1 . $test->$v2; class Test { var $v1, $v2; }

« previous php.general (#71340) next »