hi there, The variable $isect is the intersection point of the 2 arrays $key, and $tdc $key contains the values from which i want $tdc to be splited into smaller chunks. one array(let's call it result) for values in $tdc[$key[0]] to $tdc[$key[1]] and so on to the end of values(keys) in $key. /Hope i made it clear. I've tryed for loop , foreach loop, while loop. So far i came with this working piece of code. How to loop through this ? for($i=$isect[10];$i<$isect[11];$i++){ $table1[]=$tdc[$i]; } Code (markup):
hopefully the indexes from your arrays are static or the whole process will be mess. you already use looping structures, isnt it working?? what format of array you like to come up to.?