note 95829 added to reflectionclass.construct

From: Date: Sun, 24 Jan 2010 12:16:33 +0000
Subject: note 95829 added to reflectionclass.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-165251@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(); ---- Server IP: 91.199.167.223 Probable Submitter: 94.210.170.52 ---- Manual Page -- http://www.php.net/manual/en/reflectionclass.construct.php Edit -- https://master.php.net/note/edit/95829 Del: integrated -- https://master.php.net/note/delete/95829/integrated Del: useless -- https://master.php.net/note/delete/95829/useless Del: bad code -- https://master.php.net/note/delete/95829/bad+code Del: spam -- https://master.php.net/note/delete/95829/spam Del: non-english -- https://master.php.net/note/delete/95829/non-english Del: in docs -- https://master.php.net/note/delete/95829/in+docs Del: other reasons-- https://master.php.net/note/delete/95829 Reject -- https://master.php.net/note/reject/95829 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165251) next »