Inactive Tutor answered 09/25/21
Arrays in many languages are basic data structure to hold the collections. And all these languages (PHP, Java, Python, etc.) support adding elements to the array using the subscript notation. [0] - first element [1] second element and so on.
Only when you write higher level methods/classes, this subscript notation is hidden from the users and some methods such as add( ) delete() append() etc. are provided.
PHP also offers Associative arrays here the index elements can be strings. That is cool feature in PHP.