Re: [PHP] weird foreach problem when calling date or getdate function,

2002-05-04 Thread Miguel Cruz
On Sun, 5 May 2002, Kyle Gibson wrote: >> Those numbers don't look like timestamps to me (as they can't be larger >> than about 4294967296). What they look like is the result of some imp or >> perhaps even a gremlin breaking into your code and smooshing together >> yearmonthdayhourminutesecond,

Re: [PHP] weird foreach problem when calling date or getdate function,

2002-05-04 Thread Kyle Gibson
> Those numbers don't look like timestamps to me (as they can't be larger > than about 4294967296). What they look like is the result of some imp or > perhaps even a gremlin breaking into your code and smooshing together > yearmonthdayhourminutesecond, then trying to PRETEND it's a timestamp. >

Re: [PHP] weird foreach problem when calling date or getdate function,variable does not change

2002-05-04 Thread Miguel Cruz
On Sat, 4 May 2002, Zachary Buckholz wrote: > $time = getdate($array[0]); > print "$time[hours]:$time[minutes]:$time[seconds] = $chk_status = $resp_sec > > 20020504160503 <-- Notice how this date/time value is updated > properly each loop > 20:14:7 = 200 = 2 <-- Not

[PHP] weird foreach problem when calling date or getdate function, variable does not change

2002-05-04 Thread Zachary Buckholz
The following block of code loops over an array but when I call the PHP function date or getdate the variable used in this function is always the first one used in the array. What am I doing wrong? The sample output is below. foreach ($results_array as $array) { //$time = date("H: