|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-04-05 03:18 UTC] felipe@php.net
-Status: Open
+Status: Duplicate
[2011-04-05 03:18 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 05:00:02 2025 UTC |
Description: ------------ hi interface Y{} class A implements Y{} class B extends A{} echo (is_subclass_of("A", "Y") ? "TRUE" : "FALSE")."\n"; // false: incorrect echo (is_subclass_of("B", "Y") ? "TRUE" : "FALSE")."\n"; // true: correct is_subclass_of must includes interfaces or not, not sometimes not and sometimes yes thank you