Tag Archives: Associative Arrays

PHP Arrays and Type

An array is a data structure that stores one or more similar type of values in a single value. Arrays can be used in many ways to store and organize data quickly and efficiently. It is one of the more useful data types available to any programming language. For example If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this: $cars1="Saab"; $cars2="Volvo"; $cars3="BMW"; However, what if you want […]