Which of the following PHP functions can be used for generating unique id’s?
A. uniqueid()
B. id()
C. md5()
D. mdid()
Answer: Option A
Solution(By Examveda Team)
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.Join The Discussion
Comments ( 1 )
Related Questions on Functions
Which one of the following is the right way of defining a function in PHP?
A. function { function body }
B. data type functionName(parameters) { function body }
C. functionName(parameters) { function body }
D. function fumctionName(parameters) { function body }
A. Call By Value
B. Call By Reference
C. Default Argument Value
D. Type Hinting
uniqid() is true,
not uniqueid()