I'm trying to print select parts of an assoc. array which has timestamps for index keys. Namely, everything after a certain timestamp (the last time a user was active). I tried
while ($speech_array[key]<$lastactive)
{
next($speech_array);
}
while (($speech_array[key]<$time)&&($speech_array[key]>$lastactive))
{
echo(current($speech_array));
next($speech_array);
}
but it didn't really work. Plus, it slowed the page loading time down insanely.
I've tried various methods using while and foreach, but they either didn't print anything, or triggered an infinite loop that printed line after line of whatever seperator I was using between data.