* Thus wrote Maciek Ruckgaber Bielecki: > you are just missing the (); it wont work either in php4 or php5 that > way. > > > $className = "Foo"; > $fooInstance = new $className();
$a = new Foo; Is perfectly valid. Curt -- The above comments may offend you. flame at will. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php