Alan Knowles wrote:
> The basic point is that is_a() provided negative testing of non-existant
> classes
> if (!is_a($obj, "SomeRarelyUsedClass")) { ....
> 
> instance_of does not, and can not, at present. 

You can use `if (!($obj instanceof SomeRarelyUsedClass))` ;)

Why statement `$obj instanceof NotLoadedClass` can't evaluate as FALSE
if class not loaded (what with serialized objects?) because if class not
loaded, than object can't be instanceof this class, right?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to