array_walk() Method: It applies a user-defined function to every member of an array. The array’s keys and values are parameters in the function. The array_walk() function is not affected by the internal array pointer of the array.
The uniqid() function generates a unique ID based on the microtime (the current time in microseconds) in PHP. Generate a random, unique, alphanumeric string in PHP