Quote Originally Posted by arborint
This gets back to the Container thread. Because of the quirks in __get/__set, the design that currently can do everything PHP4 and PHP5 is:
PHP Code:
class Keyed {
    function 
get($key)
    function 
set($key$value)

This is the best approach IMO. I think KISS is a "PHP application design" principle number one.