Each element in the array can be easily accessed through its index.
Types of Array
Normally there are three types of array used in the php.
1) Numeric Array.
Any element in numeric array is stored with a numeric ID key.
$names_people = array("Adeel","Haris","Omer");
You can also assign the ID key yourself!
$names_people = "Adeel";
$names_people = "Haris";
$names_people = "Omer";
Now you can get the values of array element like this, for example you want to the value of second element because