paulmason411
Posts: 127
|
| Posted: 09/17/2008, 11:33 PM |
|
Hi Guys,
I was wondering if anyone knows a way of getting a list of class variables, here's an example:
class fruit {
var a = "apple";
var b= "banana"
}
$fruit = new fruit();
//here's what i want to do
print lookup_vars($fruit); //lookup_vars is the function i'm looking for
//should print
a, b
If that makes no sense at all please let me know. Cheers.
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
paulmason411
Posts: 127
|
| Posted: 09/18/2008, 6:35 PM |
|
I posted the same question at whirlpool, I got a response with in minutes, damn they're quick.
Here's the link: http://forums.whirlpool.net.au/forum-replies.cfm?t=1054559
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 09/19/2008, 8:19 AM |
|
Nice.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|