We are assigning values in array using string index. You can access a particular element with string index name. We can access name information from student information as following
Let us take above example of student array. If we want more than one student to be stored then, we can create student array as following
Then we can create associative Student Array as following
Now if push student in arrayofStudent array.
If we want to access name of the first student from the array, we can do that as following,
For your reference code is given below we used in explaining Associative Array.