What's smaller, type checking with parameter type hinting, or manually using is_int, is_string, etc?
Smaller from what POV? Developer-side, it's the same - one check there, one check here. Execution-side, since is_integer is a function and not operation, it's a tiny bit slower, but as I said, if you got to this level, you are looking for optimization in a wrong place.
-- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php