read file & show a part of it

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
us2rn4m2
New php-forum User
New php-forum User
Posts: 17
Joined: Thu Aug 09, 2012 1:28 pm

Re: read file & show a part of it

Post by us2rn4m2 » Mon Oct 08, 2012 9:02 am

Hi,

Code: Select all

/** 
* fileName : page
* Description : description of file
* Version : 1.0
*/
	class Example {}

	$rc = new ReflectionClass('Example');
	var_dump($rc->getDocComment());
Result:
/**

* fileName : page

* Description : description of file

* Version : 1.0

*/

http://www.php.net/manual/en/book.reflection.php

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests