Vidyalelo
PHP · Q14

Functions

Programming · PHP · question 14

Q14

Which of the following PHP functions can be used for generating unique id’s?

A.
uniqueid()
Answer
B.
id()
C.
md5()
D.
mdid()

Answer: Option A

Solution

Answer: Option A
Solution:
Many people use the md5() function for this, even though it’s not exactly meant for this purpose. uniqueid() is the function that is to be used.