Hi all,
I have an array $pTimeseries with 365 items inside it. I use a simple for statement, as below:
//Add TimeStamp to Historic Data
for($i = 0; $i < (count($pTimeseries)); $i++) {
$pTimeseries[$i][1] = $rawData[$i + $backdate][0];
}
In my Apache error logs I get "Undefined offset: 366" all the way up to 'Undefined offset: 327480' after which I get a memory error...
Why/how is the for statement not following the limit??