Re: class properties array?
| From: | Cynic | Date: | Sat, 06 Jan 2001 01:45:32 +0000 |
| Subject: | Re: class properties array? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32997@lists.php.net to get a copy of this message | ||
RTFM:
http://docs.wad.cz/php/ref.classobj.html
http://docs.wad.cz/php/function.get-class-vars.html
http://docs.wad.cz/php/function.get-object-vars.html
At 02:27 6.1. 2001, Samuel Lüscher wrote the following:
--------------------------------------------------------------
>is there a way to retrieve all variables that are defined within a class?
>
>eg.
>
>class foo {
> var bar1 = ..;
> var bar2 = ..;
>
> function iterate_properties() {
> [dynamically do something with bar1 and bar2]
> }
>
>}
>
>--
>Sent through GMX FreeMail - http://www.gmx.net
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz