SystemJay
09-14-2009, 11:27 AM
Heya!
Alright so I have this kind of a situation I was hoping someone could
help me out. I havent done much with Arrays, so this might sound trivial.
I have an array for example 10 in size $size=count($array).
But then in a loop while im at index (for example) 4, i would like to get
a variable out which has stored in it the remaining size from this index
to the end of the array. ie (or an alternative solution is as great).
"Im at index 4 now out of 10, There are 6 more to go".
"Im at index 5 now out of 10, There are 5 more to go".
"Im at index 6 now out of 10, There are 4 more to go".
and so on..
Thanks!
Alright so I have this kind of a situation I was hoping someone could
help me out. I havent done much with Arrays, so this might sound trivial.
I have an array for example 10 in size $size=count($array).
But then in a loop while im at index (for example) 4, i would like to get
a variable out which has stored in it the remaining size from this index
to the end of the array. ie (or an alternative solution is as great).
"Im at index 4 now out of 10, There are 6 more to go".
"Im at index 5 now out of 10, There are 5 more to go".
"Im at index 6 now out of 10, There are 4 more to go".
and so on..
Thanks!