Today’s challenge was to write a function that returns an array product (or null if the given array is empty or missing). In PHP, this isn’t much of a puzzle, since we have an array_product() function. But in the spirit of “rolling your own”, here’s a quick solution with tests.