Completed code for 'foreach.php' exercise.