Converting to object. Such an array is called Associative Array where value is associated to a unique key. Arrays are Objects.
myObject.india= ".in"; document.writeln("yahoo domain: " + aArray.yahooo); Instead of looping the associative array, we can also display the array elements using Object.keys(). We can use dot property notation for accessing the array elements, deleting object values and also for assigning values. So, after using array.shift(), array element # 2 becomes array element # 1, and so on.
In PHP, an array is a comma separated collection of key => value pairs.