note 95829 modified in reflectionclass.construct by danbrown

From: Date: Sun, 24 Jan 2010 18:21:37 +0000
Subject: note 95829 modified in reflectionclass.construct by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165256@lists.php.net to get a copy of this message
It's very useful to know that you can also use the ReflectionClass to inspect interfaces, even thouth Interfaces are not classes. Example: <?php interface Edible { public function eat(); } $refl = new Reflection_Class("Edible"); $methods = $refl->getMethods(); ?> --was-- It's very useful to know that you can also use the ReflectionClass to inspect interfaces, even thouth Interfaces are not classes. Example: <?php interface Edible { public function eat(); } $refl = new Reflection_Class("Edible"); $methods = $refl->getMethods(); http://php.net/manual/en/reflectionclass.construct.php

« previous php.notes (#165256) next »