44
In PHP 5, the is_a function is deprecated in favor of instanceof
Watch this code from php.net
<?php
if ($WF instanceof WidgetFactory) {
echo 'Yes, $WF is a WidgetFactory';
}
?>
http://it1.php.net/manual/en/function.is-a.php
Many files in xoops still have this function