|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-07 01:39 UTC] jon at webglow dot com
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 return anything.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Hmmm... Perhaps I am just missing something here, but the following does not return anything either: <? class start_vars_list { var $first_name='1'; var $last_name='2'; var $company='3'; } $vars = get_class_vars(start_vars_list); echo $vars[1]; ?>