Expanded the example with array_map()