> I hate list. each to his own :-) > > try this (untested): > > list($year,$month,$day,$hour,$minute,$second,$fraction) = > array_values(get_object_vars($rec[0])); > Magic! That works. In this case, I'd like to use list because I can use the vars directly (e.g. $year) rather than $arr['year']. I need to use the date as key to construct another associative array. It's easier for me to do $projects[$year] instead of $projects[$arr['year']]. Thanks also for your other advice. I appreciated it. Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php