Numeric Arrays
A numeric array stores each array element with a
numeric index.There are two methods to create a numeric array.
1. In the following example the index are automatically assigned (the index starts at 0):
|
$cars=array("Saab","Volvo","BMW","Toyota");
|
|
$cars[0]="Saab";
$cars[1]="Volvo"; $cars[2]="BMW"; $cars[3]="Toyota"; |