![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
uniqid() function in PHP
The uniqid() function generates a unique ID based on the current time in microseconds.
Syntax
uniqid(prefix, more_entropy)
Parameters
prefix − The prefix to the unique ID.
more_entropy − The more entropy at the end of the return value.
Return
The uniqid() function returns unique identifiers as string.
Example
<?php echo uniqid(); ?>
Output
The following is the output.
5bfd5bd045faa
Advertisements