Re: [PHP] Objects and Arrays Conversion

2008-12-03 Thread Nathan Nobbe
On Tue, Dec 2, 2008 at 7:48 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > VamVan wrote: > > Hello All, > > > > I was stuck with this issue. So just felt the need to reach out to other > > strugglers. > > May be people might enjoy this: > > > > Here is the code for object to array and array to obj

Re: [PHP] Objects and Arrays Conversion

2008-12-02 Thread Micah Gersten
VamVan wrote: > Hello All, > > I was stuck with this issue. So just felt the need to reach out to other > strugglers. > May be people might enjoy this: > > Here is the code for object to array and array to object conversion: > > function object_2_array($data) > { > if(is_array($data) || is_obje

[PHP] Objects and Arrays Conversion

2008-12-02 Thread VamVan
Hello All, I was stuck with this issue. So just felt the need to reach out to other strugglers. May be people might enjoy this: Here is the code for object to array and array to object conversion: function object_2_array($data) { if(is_array($data) || is_object($data)) { $result