Insert array element values and the result of a callback function into a format string and print the result.