Re: Best way of iterating over object member fields?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Should also work:

foreach(array_keys((array)$MyObject) as $key)

Or:

while(list($key) = each($MyObject))

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux