I'm new to PHP and trying to learn a bit about classes.
In most languages if a class member is private, it is accessed through a property which itself has an accessor. So there is a separate accessor for each property
It appears in PHP that the __set accessor is the only accessor available for an entire class.
Does this mean then that processing for every class member has to take place in this one accessor? In other words, it I want every member of the class to be stored in upper case does __set look something like this?
$this->fname = strtoupper ($value);
$this->lname = strtoupper ($value);