Any variable type can be transformed into an array by adding the array symbols [] after the type declaration.
Example 1 - Adding values by index
string [] fruit; fruit[0] = "Apple"; fruit[1] = "Apricot"; fruit[3] = "Banana";
Example 2 - Adding values to next position
string [] fruit; fruit += "Apple"; fruit += "Apricot"; fruit += "Banana";
Example 3 - Retrieving a value
return fruit[1];