It is used when we don’t have to allocate contiguous collection of data, or data in a proper sequence or index. In associative array, the index itself associates the data. So it is called so. Indexing is not regular, can be accessed using indexing like integer or string type or any scalar.
For More Information Please Refer:
You May Also Like to Read: