Access members of array
Posted: Tue Nov 21, 2006 12:22 pm
Hi,
I'm trying to work with a line of text that comes in the format:
Right now, what I was doing inside a for loop to rip out the first 5 digits (time) where $result is the string in the format mentioned above:
Wondering if there is a better way to do this... because at the way i am doing it now, im going to have to have a for loop for each value (values separated by spaces). Is there a way to read until space, and then increment the variable appropriately?
thanks,
noon
I'm trying to work with a line of text that comes in the format:
Code: Select all
13:14 692 405 3 339 29619 28 66 7426 5677 405 269 299 405 393 27 29631 714Code: Select all
for ($i=0; $i <= 4; $i++)
{
$time = $time . $result[$i];
}thanks,
noon