Is there any way to create all class properties dynamically ? For example I would like to be able to generate all class attributes from the constructor and still be able to access them after the class is instantiated like this: $class->property.
To be more specific, when I'm dealing with classes that have a large number of attributes I would like to be able to select all columns in a database ( which represent the attributes ) and create class properties from them.
EDIT: Sorry, forgot to mention: Without using an array to hold the properties, each property in a separate 'variable'.