How about an abstract method in the base class called getElementName(), which each child will implement to return its element name.Hi Ard-
This wouldn't work because the abstract method in the base class is still running in the 'base class scope' and can't see the child's constants.
Dan Cox
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php