PHPverse 2025

Voting

: max(three, two)?
(Example: nine)

The Note You're Voting On

trollll23 at yahoo dot com
19 years ago
Luckily, it prints out superinterfaces as well in reverse order so iterative searching works fine:

<?php

interface InterfaceA { }

interface
InterfaceB extends InterfaceA { }

class
MyClass implements InterfaceB { }

print_r(class_implements(new MyClass()));

?>

prints out:

Array
(
[InterfaceB] => InterfaceB
[InterfaceA] => InterfaceA
)

<< Back to user notes page

To Top