note 51174 added to function.get-declared-classes
| From: | php-general at lists dot php dot net | Date: | Tue, 22 Mar 2005 17:16:55 +0000 |
| Subject: | note 51174 added to function.get-declared-classes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86799@lists.php.net to get a copy of this message | ||
Regarding note of 3-21:
<?php
class myclass {}
$class = 'myclass';
$instance = new $class();
?>
This function could also be used to determine the names of classes defined in a particular file by
calling it before and after include. It's hardly a pointless function.
----
Manual Page -- http://www.php.net/manual/en/function.get-declared-classes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51174
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51174&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51174&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51174&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51174&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51174&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51174&report=yes
Search -- http://master.php.net/manage/user-notes.php