get_class_vars bug??
| From: | Adam Weisbart | Date: | Thu, 07 Sep 2000 02:15:58 +0000 |
| Subject: | get_class_vars bug?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15635@lists.php.net to get a copy of this message | ||
Greetings,
I'm running 4.0.1pl2 and can't get get_class_vars to work. Here's what I
have tried:
<?
class start_vars_list {
var $first_name;
var $last_name;
var $company;
}
$vars = get_class_vars(start_vars_list);
echo $vars[1];
?>
$vars is an array, but contains no data. I was thinking that echo $vars[1];
should give me "last_name" but it does not give me anything!?
Any ideas? I'm going nuts!!!
Thanks,
-Adam
--
W e b G l o w Your Site, Our Insight
Adam Weisbart | adam@webglow.com | http://webglow.com
Phone: (831) 459-7671 Toll Free: 877-WEB-GLOW