This code prints "Hello World!" three times.
Using the "list" statement the values in the array are accessed in variables.
The asort statement is used to sort an array with words for keys. The array is sorted according to values and the original keys are retained for the values.
This code shows how to delete a particular element from an array in php.
This code shows how to display the elements of an array using print_r and var-dump commands respectively.
This example demonstrates declaration of arrays using words as keys instead of numbers. Also the array elements are printed using the words as indexes.
This code demonstrates how to declare an array and print the corresponding elements.