database because the metadata is already built-in. Just a rough sketch:
[columnType: "VARCHAR", size: 20] public $name; [columnType: "DATE"] public $birthDate;
We do exactly this in PHP 4 already. The base class gets the meta-data from the DB and stores it in $this->_fields. No special language features needed, not even Reflection ;-)
I'm with Wez that I yet have to see a killer application of such a feature.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php