Web Analytics

PHP uniqid() Function

Misc FunctionPHP 4+

The uniqid() function generates a unique ID based on the current time in microseconds.

Syntax

uniqid(string $prefix = "", bool $more_entropy = false): string

Try It Online

Output
Click Run to execute your code

Related Functions