PHP 8.5.0 Alpha 2 available for testing

Voting

: seven plus zero?
(Example: nine)

The Note You're Voting On

jtunaley at gmail dot com
7 years ago
Note that this method also returns true when the thing you're reflecting is the interface you're checking for:

<?php
interface MyInterface {}

$reflect = new ReflectionClass('MyInterface');
var_dump($reflect->implementsInterface('MyInterface')); // bool(true)
?>

<< Back to user notes page

To Top