https://www.virendrachandak.com/techtalk/how-to-apply-a-function-to-every-array-element-in-php/
How to apply a function to every array element in PHP