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

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

 



> 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



[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