Faqts : Computers : Programming : Languages : PHP : kms : Classes

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 17 people (82%) answered Yes
Recently 6 of 9 people (67%) answered Yes

Entry

What happens when I cast an object as an array?
How do I get a list of object properties?

Jan 25th, 2000 18:50
Leon Atkinson,


If you cast an object as an array, all the properties will become 
elements in an array.  The indices will be the names of the 
properties.  The methods will be unavailable.
Once you have an array, you can loop over all the elements.