Re: Subject: Creating an Associative Array

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

 



Thank you kindly, Neil Smith and Brent Baisley.

I now see the error of my approach. 

---------------------------------------------------------------------------------------------------------------
$dateArray = array();

> for($counter = 0; $counter <= 3600; $counter++)
> {
>        $dateArray[ date("Y.m.d H:i:s", $now - $counter) ] = 
> (int)ceil(980 - ($counter * .2333333333333)));
> } 
---------------------------------------------------------------------------------------------------------------

works just fine.

note: 
Brent, the array(3601) was coming from the $counter loop above and is the 
seconds in an hour plus one ( for aesthetic reasons ).

David

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux