On Thu, 4 Mar 2004, Robert Janeczek wrote: > > Something like array_keys(get_class_vars($classname)) or > > array_keys(get_object_vars($object)) ? > > :) sure, but what i want to get is reading variable names without copying > values. let`s say i have object with 2MB of text in it - using > get_class[object]_vars would copy whole text to temporary array, wouldn`t > it?
No, it won't copy it, unless you modify elements in the returned array or the returned array itself. (And in the latter case only the array structure is copied, not the elements). regards, Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php