Hi!
[Validation(Email(checkMX=>true))] looks better.
Even here it's not clear what is happening. What is "Validation", what is "Email", what is "checkMX" (are they all classes? or only some of them?), what is happening to them (are these classes being instantiated? when? what is passed as parameters? What is the scope of that? etc). Why can we have now two ways to instantiate classes, complete with mix of []s and ()s, but having array syntax using [] is still too complex?
-- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php