Voting

: nine plus zero?
(Example: nine)

The Note You're Voting On

gunniboyh at web dot de
19 years ago
is_subclass_of() works also with classes between the class of obj and the superclass.

example:
<?php
class A {};
class
B extends A {};
class
C extends B {};

$foo=new C();
echo ((
is_subclass_of($foo,'A')) ? 'true' : 'false');
?>

echoes 'true' .

<< Back to user notes page

To Top