Re: [PHP] function reverse to get_object_vars

2005-03-15 Thread Richard Lynch
> Hello > > Do you know how to implement function reverse to get_object_vars? > For example if I have class and I wish to set it's properties from > database with loop through the columns in table? If you are willing to have the object properties be the same names as the columns, you do an assign

Re: [PHP] function reverse to get_object_vars

2005-03-14 Thread Robert Cummings
On Mon, 2005-03-14 at 13:26, kamen 123 wrote: > Hello > > Do you know how to implement function reverse to get_object_vars? > For example if I have class and I wish to set it's properties from database > with loop through the columns in table? Something like this? $obj->$fieldName = $fieldV

[PHP] function reverse to get_object_vars

2005-03-14 Thread kamen 123
Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? - http://gbg.bg/search - Изпробвайте още сег