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

  • (A) unique_id()
  • (B) genid()
  • (C) uniqid()
  • (D) random_id()
💬 Discuss
✅ Correct Answer: (C) uniqid()
Explanation: uniqid() generates a unique identifier based on the current time in microseconds.
Explanation by: Rati Dubey
uniqid() generates a unique identifier based on the current time in microseconds.

💬 Discussion


📊 Question Analytics

👁️
90
Total Visits
📽️
1 y ago
Published
🎖️
Rati Dubey
Publisher
📈
92%
Success Rate