tryphp_class4.php:
name = $name; } function get_name() { return $this->name; } } $apple = new Fruit(); var_dump($apple instanceof Fruit); ?>
bool(true)