An array with named indexes are called Associative Array.
Using Associative Array
Tips: It is not recommended to have this kind of key/value pair instead use the object directly.
The following example is an alternate way for the previous example.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.