In Creating Arrays in PHP, you learned how PHP arrays work, and saw how to create an array using PHP.
In this article you take things further, and look at how to access the individual elements inside a PHP array. You’ll see how to:
- Read element values
- Alter element values
- Add and remove elements in an array
- Output the entire contents of an array