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 |

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.