note 115604 added to reflectionclass.getdoccomment

From: Date: Sat, 23 Aug 2014 23:46:15 +0000
Subject: note 115604 added to reflectionclass.getdoccomment
Groups: php.notes 
Request: Send a blank email to php-notes+get-200296@lists.php.net to get a copy of this message
You can also get the docblock definitions for the defined methods of a class as such: <?php /** * This is an Example class */ class Example { /** * This is an example function */ public function fn() { // void } } $reflector = new ReflectionClass('Example'); // to get the Class DocBlock echo $reflector->getDocComment() // to get the Method DocBlock $reflector->getMethod('fn')->getDocComment(); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 176.205.0.131 ---- Manual Page -- http://php.net/manual/en/reflectionclass.getdoccomment.php Edit -- https://master.php.net/note/edit/115604 Del: integrated -- https://master.php.net/note/delete/115604/integrated Del: useless -- https://master.php.net/note/delete/115604/useless Del: bad code -- https://master.php.net/note/delete/115604/bad+code Del: spam -- https://master.php.net/note/delete/115604/spam Del: non-english -- https://master.php.net/note/delete/115604/non-english Del: in docs -- https://master.php.net/note/delete/115604/in+docs Del: other reasons-- https://master.php.net/note/delete/115604 Reject -- https://master.php.net/note/reject/115604 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200296) next »