Frederic Hardy wrote: >> I however have never seen a proper usecase.. > > class foo { > public function __call($method, $arguments) > { > // We MUST have at least ONE argument ! > if (array_key_exists(0, $arguments) === false) // > isset($arguments[0]) return false if first argument has null value
Why not simply if (count($arguments) == 0) .. which is simpler and clearer? I agree with Hannes that most "usecases" should be solved differently anyway. - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php