I have an array 

```
array(4) {
 [0]=>
 string(2) "12"
 [1]=>
 string(2) "17"
 [2]=>
 string(2) "1.0"
 [3]=>
 string(2) "1.7"
 }
 array(4) {
 [0]=>
 string(1) "3"
 [1]=>
 string(1) "1"
 [2]=>
 string(2) "4.1"
 [3]=>
 string(2) "4.6"
 }

```

I need to pass the value into excel(start from column C)
My code is 

```
  foreach ($rate as $row) { 
        $i = 0;
        $j = 2;

        foreach ($row as $item) {

            $myxls->write_string($i, $j++, $row);
        }
        $i++;
    }

```

But why I can only wrote the second array(3,1,4.1,4.6) in the first line. The first row is missing. Anything wrong in my foreach ?