Which of the following PHP functions can be used for generating unique ids?
uniqueid()
Correct:
uniqueid()
Explanation: The function uniqueid() is used to generate a unique ID based on the microtime (current time in microseconds). The ID generated from the function uniqueid() is not optimal, as it is based on the system time. To generate an ID which is extremely difficult to predict we can use the md5() function.