Arrays

Arrays are data structures used to store multiple number of values. As we have seen previously that variables store only a single value. Thus arrays helps in storing multiple values at different indices.

There are two type of arrays in PHP.

1. Index Array

2. Associative Array

Get hands-on with 1200+ tech skills courses.