Re: how should MS Access DATETIME be handled in PHP?

From: Date: Thu, 13 Apr 2006 15:51:08 +0000
Subject: Re: how should MS Access DATETIME be handled in PHP?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-233914@lists.php.net to get a copy of this message
> 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

« previous php.general (#233914) next »