Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8368 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60267 invoked by uid 1010); 4 Mar 2004 11:29:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59923 invoked from network); 4 Mar 2004 11:29:16 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 4 Mar 2004 11:29:16 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id i24BTE9b012639; Thu, 4 Mar 2004 12:29:14 +0100 Date: Thu, 4 Mar 2004 12:29:14 +0100 (CET) X-X-Sender: derick@localhost To: Robert Janeczek cc: internals@lists.php.net In-Reply-To: <20040304112125.33833.qmail@pb1.pair.com> Message-ID: References: <20040303210510.50482.qmail@pb1.pair.com> <00b601c40178$256c14c0$f300000a@alphaweb.net> <20040304112125.33833.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: simple feature request :] From: derick@php.net (Derick Rethans) 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