PHP array_map() Function

The array_map() function sends each value of an array to a user-made function, and returns an array with new values, given by the user-made function.The array_map() function sends each value of an array to a user defined function and gets an array with new values applied by the user defined function.

Example -

Example -