i've started to play with a more general way to handle this:
switch(mixed data [, callback compare_function])
seems the sanest thing up until now.
slighly O.T.: would be and even better if lambda functions were available here
http://php.net/create-function
-- Hartmut Holzgraefe <[EMAIL PROTECTED]>
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php