Here are the answers to the quiz questions:
a. Arrays are used to store multiple values in a single variable. They allow efficient storage and retrieval of data from memory.
b. The three main types of arrays in PHP are:
- Indexed arrays - Arrays with a numeric index
- Associative arrays - Arrays with named keys
- Multidimensional arrays - Arrays containing one or more arrays
c. Four examples of array sort functions are:
- sort() - Sort arrays in ascending order
- rsort() - Sort arrays in descending order
- asort() - Sort associative arrays in ascending order according to value
- ksort() - Sort associative arrays in ascending