A

Admin • 833K Points
Coach

Q. Which function is used to generate a unique ID in PHP?

  • (A) uniqid()
  • (B) unique_id()
  • (C) genid()
  • (D) create_id()
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

uniqid() generates a unique identifier based on the current time in microseconds.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.