I have an array :

```
(
    [0] => 
    [1] => Array
        (
            [item_id] => 1418
            [item_qty] => 2
        )

    [2] => Array
        (
            [item_syskey] => 2013010103330149001
            [item_qty] => 1
        )

)

```

I am running a foreach loop as 

```
foreach($array as $val){

}

```

How can I know that the next **key** is item\_syskey or item\_id ?

Actually I am changing array according to item\_id and item\_syskey .That means in loop if key is equal to item\_id then will do something and if item\_syskey then o something.