Re: Check how much/which variables there are in an class
| From: | Mathijs | Date: | Wed, 11 Jan 2006 11:09:25 +0000 |
| Subject: | Re: Check how much/which variables there are in an class | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228464@lists.php.net to get a copy of this message | ||
Stefan Reimers wrote:
Try array get_class_vars ( string class_name) This will return an array with at least the public variables. Mathijs wrote:It works, but only for the public indeed. Is there also a way to get the private/protected variables?Is there a way to check how much/which variables there are in an class? Thx in advanced.