CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [Resolved] generating a list of class variables?

Print topic Send  topic

Author Message
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

View profile  Send private message
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

View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.