note 25688 added to function.get-class-vars

From: Date: Wed, 02 Oct 2002 11:43:58 +0000
Subject: note 25688 added to function.get-class-vars
Groups: php.notes 
Request: Send a blank email to php-notes+get-37538@lists.php.net to get a copy of this message
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)); -- http://www.php.net/manual/en/function.get-class-vars.php http://master.php.net/manage/user-notes.php?action=edit+25688 http://master.php.net/manage/user-notes.php?action=delete+25688 http://master.php.net/manage/user-notes.php?action=reject+25688

« previous php.notes (#37538) next »