General Array Notation Query

Hi guys,

i have seen on the web where people have arrays, and when they loop through the array, they somtimes use e.g $images[$i+$j][‘Filename’].'"…
can somebody tell me when you have this type of notation $array[$a+$b]…
what it means? Because i know what $somearray[$i] means it is referring to the current index value.


$array[$i+$j] means the value of $array at index $i+$j

This is the same as:

$array[$k] == $array[$i+$j]; // true

The variables you are talking about [$a+$b] is only the index of the arrays. So by doing such actions may be developer want to reach to some specific index.