This sort of thing drives me bonkers:

PHP:  instanceof operator

The instanceof operator was introduced in PHP 5. Before this time is_a() was used but is_a() has since been deprecated in favor of instanceof. Note that as of PHP 5.3.0, is_a() is no longer deprecated.

See also get_class() and is_a().

To deprecate or not to deprecate?  Why depricate a function that is very useful is the question I suppose.

I assume this is back in full effect in PHP 5.3.  Thank god.

Posted by Paul Skinner, filed under PHP. Date: June 17, 2009, 8:20 am | No Comments »