Sometimes two arrays of the same length need to be iterated together, for example:
$people = ['Tim', 'Tony', 'Turanga'];
$foods = ['chicken', 'beef', 'slurm'];
array_map is the simplest way to accomplish this:
array_map(function($person, $food) {
return "$person likes $food\n";
...