note 25688 deleted from function.get-class-vars by nlopess
| From: | nlopess@php.net | Date: | Fri, 24 Dec 2004 20:37:27 +0000 |
| Subject: | note 25688 deleted from function.get-class-vars by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82276@lists.php.net to get a copy of this message | ||
Note Submitter: alex at linium dot net
----
Although this is pointed out in the docs, it should be stressed that this functions does not return
an array of the the variable names a class contains, but an associative array in which the variable
names are the keys. To get an array of the variable names, use:
$array = array_keys(get_class_vars($classname));