PHP arrays
* In PHP, there are three kind of arrays: * 1)Numeric array - An array with a numeric index * 2)Associative array - An array where each ID key is associated with a value * 3)Multidimensional array - An array containing one or more arrays 1)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): $array1 = array(3,5,7,2); echo $array1[0]." "; $array2 = array(4,"dantha" ,"brown" ,array("x","y","z")); echo $array2[3][2]." "; $array2[3] = "Cat"; echo $array2[3]." "; 2. In the following example we assign the index manually: $cars[0]="Honda"; $cars[1]="Nissan"; $cars[2]="BMW"; $cars[3]="Toyota"; echo $cars[0]." and ".$cars[1]." are Japanese cars"; 2) ASSOCIAT...