How to use uniqid in PHP

In this article I will explain how uniqid Function can be used in PHP.
  • 1912

uniqid() Function

This function enerates a unique ID based on the micro time.

Syntax

uniqid(prefix,more_entropy)

Example

<html>
<body>
<?php
echo pack("C3",80,72,80);
?>
</body>
</html>

 

Output

uniqid-php.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.