Posted by howa on 12/31/06 11:20
for example, i have a class, e.g.
class User {
var $name;
var $age;
var $blah;
}
The user has many atttibutes, i want to provide each of them with
getter & setter function, but it is time consuming to type all the
functions for all attributes...
is it possible to dynamically create function? so I only need to
declare one setter, and one getter?
thanks.
[Back to original message]
|