Indexed arrays have elements that contain a numerical index value.
Example: $color=array("red","green","blue");
Here, red is at index 0, green at 1, and blue at 2.
Associative arrays, on the other hand, hold elements with string indices as shown below:
Example: $salary=array("Jacob"=>"20000","John"=>"44000","Josh"=>"60000");