Start your All-Access Pass to unlock this challenge
What does the following code do? $pets[] = $newPet;
$pets[] = $newPet;
Adds the $newPet variable to the beginning of the array
$newPet
Adds the $newPet variable to the end of the array
It throws an error. The [] syntax does not exist in PHP
[]
It throws an error. The [] syntax needs an index number inside of it - e.g. $pets[2]
$pets[2]