Re: [PHP] Re: array_slice and for loop problem

2005-10-13 Thread Rodney Green
$output[] = array_slice ($textArray, $int_range[start][$i], $int_range[end][$i]); is creating a multi-dimensional array as $output. In my foreach loop I was treating $output as a single-dimensional array. That's why it wasn't working. print_r() is my friend. :-) On 10/13/05, Rodney Green <[EMAIL

Re: [PHP] Re: array_slice and for loop problem

2005-10-13 Thread Rodney Green
Thanks Connor. I changed the line to the following. Is it correct now? The array $output[] is now being populated. However, when I go to print the values of the $output array using a foreach loop, it prints out the word "Array" for each array item. $output[] = array_slice ($textArray, $int_range[s